test/java/util/logging/LoggerResourceBundleRace.java

Print this page
rev 6099 : 8003380: Compiler warnings in logging test code
Summary: Use generics, suppress warnings where appropriate, remove unused imports, etc.
Reviewed-by: lancea, chegar

*** 1,7 **** /* ! * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2011, 2012 Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 28,42 **** * @author Daniel D. Daugherty * @build RacingThreadsTest LoggerResourceBundleRace * @run main LoggerResourceBundleRace */ - import java.util.concurrent.atomic.AtomicInteger; import java.util.ListResourceBundle; - import java.util.logging.Logger; import java.util.MissingResourceException; ! import java.util.ResourceBundle; public class LoggerResourceBundleRace extends RacingThreadsTest { private final static int N_LOOPS = 500000; // # of race loops private final static int N_SECS = 15; // # of secs to run test --- 28,41 ---- * @author Daniel D. Daugherty * @build RacingThreadsTest LoggerResourceBundleRace * @run main LoggerResourceBundleRace */ import java.util.ListResourceBundle; import java.util.MissingResourceException; ! import java.util.concurrent.atomic.AtomicInteger; ! import java.util.logging.Logger; public class LoggerResourceBundleRace extends RacingThreadsTest { private final static int N_LOOPS = 500000; // # of race loops private final static int N_SECS = 15; // # of secs to run test