8282657: Code cleanup: removing double semicolons at the end of lines

Reviewed-by: lancea, rriggs, ihse, prr, iris, wetmore, darcy, dholmes
This commit is contained in:
Matteo Baccan 2022-03-07 21:33:40 +00:00 committed by Magnus Ihse Bursie
parent 5d5bf16b0a
commit ccad39237a
82 changed files with 93 additions and 93 deletions

View File

@ -115,7 +115,7 @@ public class CharacterScript {
for (j = 0; j < scriptSize; j++) {
for (int cp = scripts[j][0]; cp <= scripts[j][1]; cp++) {
String name = names[scripts[j][2]].toUpperCase(Locale.ENGLISH);;
String name = names[scripts[j][2]].toUpperCase(Locale.ENGLISH);
if (cp > 0xffff)
System.out.printf("%05X %s%n", cp, name);
else

View File

@ -213,7 +213,7 @@ public class GenStubs {
long prevClassMods = currClassMods;
currClassMods = tree.mods.flags;
try {
super.visitClassDef(tree);;
super.visitClassDef(tree);
} finally {
currClassMods = prevClassMods;
}

View File

@ -2012,7 +2012,7 @@ public class File
int prefixLength = prefix.length();
int nusLength = nus.length();
int suffixLength = suffix.length();;
int suffixLength = suffix.length();
String name;
int nameMax = fs.getNameMax(dir.getPath());

View File

@ -1040,7 +1040,7 @@ public class WeakHashMap<K,V>
Objects.requireNonNull(function);
int expectedModCount = modCount;
Entry<K, V>[] tab = getTable();;
Entry<K, V>[] tab = getTable();
for (Entry<K, V> entry : tab) {
while (entry != null) {
Object key = entry.get();

View File

@ -371,7 +371,7 @@ public class PlatformLogger {
@Deprecated
public void setLevel(Level newLevel) {
final ConfigurableBridge.LoggerConfiguration spi =
PlatformLogger.ConfigurableBridge.getLoggerConfiguration(loggerProxy);;
PlatformLogger.ConfigurableBridge.getLoggerConfiguration(loggerProxy);
if (spi != null) {
spi.setPlatformLevel(newLevel);
}

View File

@ -966,7 +966,7 @@ public class RepaintManager
tmp.setBounds(dirtyComponents.get(dirtyComponent));
// System.out.println("Collect dirty component for bound " + tmp +
// "component bounds is " + cBounds);;
// "component bounds is " + cBounds);
SwingUtilities.computeIntersection(0,0,w,h,tmp);
if (tmp.isEmpty()) {

View File

@ -176,7 +176,7 @@ public class LogStream extends PrintStream {
synchronized (this) {
synchronized (logOut) {
// construct prefix for log messages:
buffer.setLength(0);;
buffer.setLength(0);
buffer.append( // date/time stamp...
(new Date()).toString());
buffer.append(':');

View File

@ -134,8 +134,8 @@ public class AuthTime {
* Encodes to be used in a dfl file
*/
protected byte[] encode0(String cstring, String sstring) {
byte[] c = cstring.getBytes(StandardCharsets.UTF_8);;
byte[] s = sstring.getBytes(StandardCharsets.UTF_8);;
byte[] c = cstring.getBytes(StandardCharsets.UTF_8);
byte[] s = sstring.getBytes(StandardCharsets.UTF_8);
byte[] zero = new byte[1];
int len = 4 + c.length + 1 + 4 + s.length + 1 + 4 + 4;
ByteBuffer bb = ByteBuffer.allocate(len)

View File

@ -276,7 +276,7 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
// We assume caller is a CachedRowSet
CachedRowSetImpl crs = (CachedRowSetImpl)caller;
// crsResolve = new CachedRowSetImpl();
this.crsResolve = new CachedRowSetImpl();;
this.crsResolve = new CachedRowSetImpl();
// The reader is registered with the writer at design time.
// This is not required, in general. The reader has logic

View File

@ -535,7 +535,7 @@ public class SQLOutputImpl implements SQLOutput {
*/
@SuppressWarnings("unchecked")
public void writeStruct(Struct x) throws SQLException {
SerialStruct s = new SerialStruct(x,map);;
SerialStruct s = new SerialStruct(x,map);
attribs.add(s);
}

View File

@ -1011,7 +1011,7 @@ public class XPathParser extends lr_parser {
if (axis == Axis.NAMESPACE) {
nodeType = (name.toString().equals("*")) ? -1
: _xsltc.registerNamespacePrefix(name);;
: _xsltc.registerNamespacePrefix(name);
} else {
final String uri = name.getNamespace();
final String local = name.getLocalPart();

View File

@ -493,7 +493,7 @@ public class JavacProcessingEnvironment implements ProcessingEnvironment, Closea
}
private class NameServiceIterator extends ServiceIterator {
private Map<String, Processor> namedProcessorsMap = new HashMap<>();;
private Map<String, Processor> namedProcessorsMap = new HashMap<>();
private Iterator<String> processorNames = null;
private Processor nextProc = null;

View File

@ -78,7 +78,7 @@ public class ZGlobals {
ZPageSizeMediumShift = db.lookupLongConstant("ZPageSizeMediumShift").longValue();
ZObjectAlignmentMediumShift = db.lookupIntConstant("ZObjectAlignmentMediumShift").intValue();
ZObjectAlignmentLargeShift = db.lookupIntConstant("ZObjectAlignmentLargeShift").intValue();;
ZObjectAlignmentLargeShift = db.lookupIntConstant("ZObjectAlignmentLargeShift").intValue();
ZAddressOffsetShift = db.lookupLongConstant("ZAddressOffsetShift").longValue();

View File

@ -79,7 +79,7 @@ public class FindInCodeCachePanel extends SAPanel {
}
begin = begin.addOffsetTo(addressSize);
}
iterated = end.minus(base);;
iterated = end.minus(base);
updateProgressBar(null);
}

View File

@ -195,7 +195,7 @@ public class FindInHeapPanel extends JPanel {
for (String update : updates) {
textArea.append(update);
}
updates = new ArrayList<>();;
updates = new ArrayList<>();
}
pendingUpdate = false;
}

View File

@ -130,7 +130,7 @@ public class TypeAnnotation {
break;
// class extends or implements clause
case CLASS_EXTENDS:
position.type_index = cr.readUnsignedShort();;
position.type_index = cr.readUnsignedShort();
break;
// throws
case THROWS:

View File

@ -52,7 +52,7 @@ final class SocketChannelImplInstrumentor {
int bytesRead = 0;
long start = 0;
try {
start = EventHandler.timestamp();;
start = EventHandler.timestamp();
bytesRead = read(dst);
} finally {
long duration = EventHandler.timestamp() - start;

View File

@ -63,7 +63,7 @@ final class JSONWriter extends EventPrintWriter {
@Override
protected void printEnd() {
printArrayEnd();;
printArrayEnd();
printObjectEnd();
printObjectEnd();
}

View File

@ -302,7 +302,7 @@ class Selector {
<E extends Enum<E> & SelectorInstanceWithDoc<E>>
SelectorKind(Class<E> k) {
this.all = EnumSet.allOf(FormatCase.class);;
this.all = EnumSet.allOf(FormatCase.class);
this.k = k;
}
}

View File

@ -973,7 +973,7 @@ public class LogParser extends DefaultHandler implements ErrorHandler {
m.setHolder(type(search(atts, "holder")));
m.setName(search(atts, "name"));
m.setReturnType(type(search(atts, "return")));
String arguments = atts.getValue("arguments");;
String arguments = atts.getValue("arguments");
if (arguments == null) {
m.setSignature("()" + sigtype(atts.getValue("return")));
} else {

View File

@ -241,7 +241,7 @@ public class Test6909839 {
static void testp() {
Object a = new Object();
Object b = new Object();;
Object b = new Object();
int total = 0;
for (int i = 0 ; i < 10000; i++) {
total += ((i % 4 != 0) ? a : b).hashCode();
@ -251,7 +251,7 @@ public class Test6909839 {
static void testup() {
Object a = new Object();
Object b = new Object();;
Object b = new Object();
int total = 0;
for (int i = 0 ; i < 10000; i++) {
int v = i % 4;
@ -262,7 +262,7 @@ public class Test6909839 {
static void testdp() {
Object a = new Object();
Object b = new Object();;
Object b = new Object();
int total = 0;
for (int i = 0 ; i < 10000; i++) {
int v = i % 4;
@ -272,7 +272,7 @@ public class Test6909839 {
}
static void testfp() {
Object a = new Object();
Object b = new Object();;
Object b = new Object();
int total = 0;
for (int i = 0 ; i < 10000; i++) {
int v = i % 4;

View File

@ -244,7 +244,7 @@ public class CompileCodeTestCase {
}
static {
Map<Class<?>, Object> map = new HashMap<>();;
Map<Class<?>, Object> map = new HashMap<>();
map.put(CompileCodeTestCase.DummyEx.class,
new CompileCodeTestCase.DummyEx());
map.put(CompileCodeTestCase.Dummy.class,

View File

@ -37,7 +37,7 @@ import jdk.test.lib.Asserts;
public class TestMisalignedUnsafeAccess {
private static final Unsafe UNSAFE = Unsafe.getUnsafe();;
private static final Unsafe UNSAFE = Unsafe.getUnsafe();
private static short onHeapStaticMemory; // For static field testing
private static final Object onHeapStaticMemoryBase;

View File

@ -466,7 +466,7 @@ public class TestCommon extends CDSTestUtils {
public static Result runWithoutCDS(String... suffix) throws Exception {
AppCDSOptions opts = (new AppCDSOptions());
opts.addSuffix(suffix).setXShareMode("off");;
opts.addSuffix(suffix).setXShareMode("off");
return new Result(opts, runWithArchive(opts));
}

View File

@ -54,7 +54,7 @@ public class SameNameInTwoLoadersTest {
customJar = JarBuilder.build("SameNameInTwoLoadersTest_custom", "CustomLoadee", "CustomLoadee3");
useWbParam = "-Xbootclasspath/a:" +
JarBuilder.build(true, "WhiteBox", "sun/hotspot/WhiteBox");;
JarBuilder.build(true, "WhiteBox", "sun/hotspot/WhiteBox");
// ====== unrelated loaders
executeTestCase(getClassList_FP(),

View File

@ -590,7 +590,7 @@ public class IterateHeapWithEscapeAnalysisEnabled {
// The new instance is an ArgEscape instance and escapes to the JVMTI agent
// while the target thread is in the call to dontinline_endlessLoop(). At this
// location there is no local variable that references the ArgEscape.
((ABBox) dontinline_endlessLoop(new ABBox(this))).synchronizedSlowInc();;
((ABBox) dontinline_endlessLoop(new ABBox(this))).synchronizedSlowInc();
}
}

View File

@ -93,7 +93,7 @@ public class CtwRunner {
errors = new ArrayList<>();
if (start.endsWith("%") && stop.endsWith("%")) {
int startPercentage = Integer.parseInt(start.substring(0, start.length() - 1));;
int startPercentage = Integer.parseInt(start.substring(0, start.length() - 1));
int stopPercentage = Integer.parseInt(stop.substring(0, stop.length() - 1));
if (startPercentage < 0 || startPercentage > 100 ||
stopPercentage < 0 || stopPercentage > 100) {

View File

@ -192,7 +192,7 @@ fres);
{
series patObj = new series();
if (patObj.runit()!=0)
throw new TestFailure("Test failed.");;
throw new TestFailure("Test failed.");
series.goldChecker.check();
}
}

View File

@ -172,7 +172,7 @@ public class unmonitor001 extends JdbTest {
private boolean checkCommands(String[] reply) {
Paragrep grep;
String found;
Vector v = new Vector();;
Vector v = new Vector();
boolean result = true;
int count;

View File

@ -146,7 +146,7 @@ public class tc02x003 {
hitEvent(clsEvent);
mthdReq = evm.createMethodEntryRequest();
ReferenceType testedClass = clsEvent.referenceType();;
ReferenceType testedClass = clsEvent.referenceType();
mthdReq.addClassFilter(testedClass);
mthdReq.enable();

View File

@ -166,7 +166,7 @@ public class reflectype002 extends Log {
print_log_on_verbose
("--> reflectype002: getting ClassObjectReference object for loaded checked class...");
ClassObjectReference class_obj_ref = refType.classObject();;
ClassObjectReference class_obj_ref = refType.classObject();
print_log_on_verbose("--> reflectype002: getting ClassObjectReference object - DONE!");
print_log_on_verbose

View File

@ -415,7 +415,7 @@ public class isvisible001 {
expresult = returnCode1;
}
} catch ( IllegalArgumentException e ) {
log3("ERROR: IllegalArgumentException for i3 in stackFrame");;
log3("ERROR: IllegalArgumentException for i3 in stackFrame");
expresult = returnCode1;
}
}

View File

@ -373,7 +373,7 @@ public class frames001 {
log2(" getting new List of frames");
try {
frameList = thread2.frames();;
frameList = thread2.frames();
} catch ( IndexOutOfBoundsException e1 ) {
log3("ERROR: IndexOutOfBoundsException");
expresult = returnCode1;

View File

@ -79,7 +79,7 @@ public class hs203t002 extends RedefineAgent {
Thread.sleep(10000);
popThreadFrame(mt);
resumeThread(mt);
while(!MyThread.resume2.get());;
while(!MyThread.resume2.get());
Thread.sleep(10000);
suspendThread(mt);
//mt.suspend();

View File

@ -184,7 +184,7 @@ public class Launcher extends DebugeeBinder {
connect.append(argumentHandler.getConnectorName() + ":");
String connectorAddress;
String vmAddress = makeTransportAddress();;
String vmAddress = makeTransportAddress();
if (argumentHandler.isRawLaunchingConnector()) {

View File

@ -241,7 +241,7 @@ public class ConstantPoolInfo extends TestScaffold {
if (magic != JAVA_MAGIC) {
failure("fatal bad class file format");
}
expectedMinorVersion = in.readShort();;
expectedMinorVersion = in.readShort();
expectedMajorVersion = in.readShort();
expectedCpoolCount = in.readUnsignedShort();
in.close();

View File

@ -40,7 +40,7 @@ import java.util.*;
/********** target program **********/
class GenericsTarg {
static Gen1<String> genField = new Gen1<String>();;
static Gen1<String> genField = new Gen1<String>();
static Sub1 sub1Field = new Sub1();
String[] strArray = null;

View File

@ -86,7 +86,7 @@ public class CompEventOnHiddenComponent
EventQueue.invokeLater(new Runnable() {
public void run() {
JFrame parentWindow = new JFrame("JFrame 1");
JButton component = new JButton("JButton 1");;
JButton component = new JButton("JButton 1");
JButton smallButton = new JButton("Small Button");

View File

@ -81,7 +81,7 @@ public class EmbeddedFrameGrabTest {
= clazz.getConstructor(new Class[]{long.class});
final Frame embedded_frame
= (Frame) constructor.newInstance(new Object[]{
new Long(hwnd)});;
new Long(hwnd)});
final JComboBox<String> combo = new JComboBox<>(new String[]{
"Item 1", "Item 2"
});

View File

@ -65,7 +65,7 @@ public class PrintArcTest extends Panel implements ActionListener {
}
private Frame getFrame() {
Container cont = getParent();;
Container cont = getParent();
while ( !(cont instanceof Frame ) ) {
cont = cont.getParent();

View File

@ -43,7 +43,7 @@ public class GenerateTestImage {
Graphics2D graphics2D = image.createGraphics();
graphics2D.setColor(Color.red);
graphics2D.fillOval(0, 0, IMAGE_SIZE, IMAGE_SIZE);
graphics2D.dispose();;
graphics2D.dispose();
ImageIO.write(image, "png", file);
}

View File

@ -50,7 +50,7 @@ public class PrtException implements Printable {
}
System.out.println("PrintService found : "+defService);
pj = PrinterJob.getPrinterJob();;
pj = PrinterJob.getPrinterJob();
pj.setPrintService(defService);
//pj.setPrintable(this); // commenting this line should not result in PrinterException
pj.print();

View File

@ -154,7 +154,7 @@ public class GetXSpace {
// cygwin's df lists windows path as FileSystem (1st group)
name = Platform.isWindows() ? m.group(1) : m.group(4);
}
al.add(new Space(m.group(2), m.group(3), name));;
al.add(new Space(m.group(2), m.group(3), name));
}
j = m.end();
} else {

View File

@ -54,7 +54,7 @@ public class NameTooLong {
if (ps[1].startsWith(".")
&& !s.contains(ps[1].substring(0, 4))) {
System.err.printf("%s did not contain %s%n", s,
ps[1].substring(0, 4));;
ps[1].substring(0, 4));
failures++;
}
} catch (IOException e) {

View File

@ -37,7 +37,7 @@ public class WriteBytesChars {
byte[] b = new byte[80];
File fn = new File("x.WriteBytesChars");
RandomAccessFile raf = new RandomAccessFile(fn , "rw");;
RandomAccessFile raf = new RandomAccessFile(fn , "rw");
try {
for (int i = 0; i < 80; i++) {
buf[i] = 'a';

View File

@ -120,7 +120,7 @@ public class BogoLoader extends ClassLoader {
if (verbose) {
System.err.println("Loading classloader class " + name);
}
byte[] classData = getClass(name);;
byte[] classData = getClass(name);
boolean expanded = false;
if (!noReplace && replaced.containsKey(name)) {
if (verbose) {

View File

@ -121,7 +121,7 @@ public class BogoLoader extends ClassLoader {
if (verbose) {
System.err.println("Loading classloader class " + name);
}
byte[] classData = getClass(name);;
byte[] classData = getClass(name);
boolean expanded = false;
if (!noReplace && replaced.containsKey(name)) {
if (verbose) {

View File

@ -40,7 +40,7 @@ public class GetSystemProperties {
// system properties to be omitted
private static final String KEY3 = "test.property.key3";
private static final Long VALUE3 = new Long(0);;
private static final Long VALUE3 = new Long(0);
private static final Object KEY4 = new Object();
private static final String VALUE4 = "test.property.value4";

View File

@ -485,7 +485,7 @@ public class AggregateRequestBodyTest implements HttpServerAdapters {
subscriber.subscriptionCF.thenAccept(s -> s.request(1));
List<ByteBuffer> result = subscriber.resultCF.join();
assertEquals(result, List.of());
assertTrue(subscriber.items.isEmpty());;
assertTrue(subscriber.items.isEmpty());
}
// verifies that error emitted by upstream publishers are propagated downstream.

View File

@ -102,7 +102,7 @@ public class CloseTimeoutChannel {
System.out.println(INDENT+"Listening on port "+
_listener.socket().getLocalPort());
ByteBuffer buf=ByteBuffer.allocate(5);
Socket client=_listener.accept().socket();;
Socket client=_listener.accept().socket();
System.out.println(INDENT+"Accepted client");
OutputStream out=client.getOutputStream();

View File

@ -68,7 +68,7 @@ public class DGCImplInsulation implements java.rmi.Remote {
new ProtectionDomain(
new CodeSource(null, (Certificate[]) null), perms) });
Remote impl = new DGCImplInsulation();;
Remote impl = new DGCImplInsulation();
try {
Remote stub = (Remote) java.security.AccessController.doPrivileged(

View File

@ -1072,7 +1072,7 @@ public class TCKZoneRules {
);
OffsetDateTime before_time_of_stdOffsetTransition1 = OffsetDateTime.of(time_of_stdOffsetTransition1, stdOffset1).minusSeconds(1);
OffsetDateTime after_time_of_stdOffsetTransition1 = OffsetDateTime.of(time_of_stdOffsetTransition1, stdOffset1).plusSeconds(1);;
OffsetDateTime after_time_of_stdOffsetTransition1 = OffsetDateTime.of(time_of_stdOffsetTransition1, stdOffset1).plusSeconds(1);
assertEquals(zoneRule.getStandardOffset(before_time_of_stdOffsetTransition1.toInstant()), stdOffset1);
assertEquals(zoneRule.getStandardOffset(after_time_of_stdOffsetTransition1.toInstant()), stdOffset2);

View File

@ -447,7 +447,7 @@ public class TestAppletLoggerContext {
Logger logger4b = manager.getLogger(Logger.GLOBAL_LOGGER_NAME);
assertNotNull(logger4);
assertNotNull(logger4b);
expected = (System.getSecurityManager() == null ? global : global2);;
expected = (System.getSecurityManager() == null ? global : global2);
assertEquals(logger4, expected);
assertEquals(logger4b, expected);

View File

@ -134,7 +134,7 @@ public class SSLSocketExplorer {
position += n;
}
capabilities = SSLExplorer.explore(buffer, 0, recordLength);;
capabilities = SSLExplorer.explore(buffer, 0, recordLength);
if (capabilities != null) {
System.out.println("Record version: " +
capabilities.getRecordVersion());

View File

@ -135,7 +135,7 @@ public class SSLSocketExplorerFailure {
position += n;
}
capabilities = SSLExplorer.explore(buffer, 0, recordLength);;
capabilities = SSLExplorer.explore(buffer, 0, recordLength);
if (capabilities != null) {
System.out.println("Record version: " +
capabilities.getRecordVersion());

View File

@ -138,7 +138,7 @@ public class SSLSocketExplorerMatchedSNI {
position += n;
}
capabilities = SSLExplorer.explore(buffer, 0, recordLength);;
capabilities = SSLExplorer.explore(buffer, 0, recordLength);
if (capabilities != null) {
System.out.println("Record version: " +
capabilities.getRecordVersion());

View File

@ -130,7 +130,7 @@ public class SSLSocketExplorerUnmatchedSNI {
position += n;
}
capabilities = SSLExplorer.explore(buffer, 0, recordLength);;
capabilities = SSLExplorer.explore(buffer, 0, recordLength);
if (capabilities != null) {
System.out.println("Record version: " +
capabilities.getRecordVersion());

View File

@ -129,7 +129,7 @@ public class SSLSocketExplorerWithCliSNI {
position += n;
}
capabilities = SSLExplorer.explore(buffer, 0, recordLength);;
capabilities = SSLExplorer.explore(buffer, 0, recordLength);
if (capabilities != null) {
System.out.println("Record version: " +
capabilities.getRecordVersion());

View File

@ -129,7 +129,7 @@ public class SSLSocketExplorerWithSrvSNI {
position += n;
}
capabilities = SSLExplorer.explore(buffer, 0, recordLength);;
capabilities = SSLExplorer.explore(buffer, 0, recordLength);
if (capabilities != null) {
System.out.println("Record version: " +
capabilities.getRecordVersion());

View File

@ -37,7 +37,7 @@ import com.sun.media.sound.*;
public class NewModelIdentifierStringStringInt {
public static void main(String[] args) throws Exception {
ModelIdentifier id = new ModelIdentifier("test","a",1);;
ModelIdentifier id = new ModelIdentifier("test","a",1);
if(!id.getObject().equals("test"))
throw new RuntimeException("id.getObject() doesn't return \"test\"!");
if(!id.getVariable().equals("a"))

View File

@ -56,7 +56,7 @@ public class NoteOff {
assertEquals(v[0].active, true);
channel.noteOff(60);
soft.read(1);
v = soft.synth.getVoiceStatus();;
v = soft.synth.getVoiceStatus();
assertEquals(v[0].active, false);
soft.close();

View File

@ -56,7 +56,7 @@ public class NoteOff2 {
assertEquals(v[0].active, true);
channel.noteOff(60);
soft.read(1);
v = soft.synth.getVoiceStatus();;
v = soft.synth.getVoiceStatus();
assertEquals(v[0].active, false);
soft.close();

View File

@ -355,7 +355,7 @@ public class BaseRowSetTests extends CommonRowSetTests {
Blob aBlob = new SerialBlob(new StubBlob());
Clob aClob = new SerialClob(new StubClob());
Reader rdr = new StringReader(query);
InputStream is = new StringBufferInputStream(query);;
InputStream is = new StringBufferInputStream(query);
brs = new StubBaseRowSet();
brs.setBytes(1, bytes);
brs.setAsciiStream(2, is, query.length());

View File

@ -183,7 +183,7 @@ public class SQLInputImplTests extends BaseTest {
*/
@Test(enabled = true)
public void test10() throws Exception {
URL u = new URL("http://www.oracle.com/");;
URL u = new URL("http://www.oracle.com/");
Object[] values = {u};
SQLInputImpl sqli = new SQLInputImpl(values, map);
URL u2 = sqli.readURL();

View File

@ -230,7 +230,7 @@ public class SerialArrayTests extends BaseTest {
@Test
public void test18() throws Exception {
SerialArray sa = new SerialArray(a);
SerialArray sa1 = serializeDeserializeObject(sa);;
SerialArray sa1 = serializeDeserializeObject(sa);
assertTrue(sa.equals(sa1));
}
}

View File

@ -108,6 +108,6 @@ public class SerialExceptionTests extends BaseTest {
assertTrue(ex1.getMessage().equals(reason)
&& ex1.getSQLState() == null
&& ex1.getCause() == null
&& ex1.getErrorCode() == 0);;
&& ex1.getErrorCode() == 0);
}
}

View File

@ -134,7 +134,7 @@ public class SerialStructTests extends BaseTest {
@Test
public void test08() throws Exception {
SerialStruct ss = new SerialStruct(struct, map);
SerialStruct ss1 = serializeDeserializeObject(ss);;
SerialStruct ss1 = serializeDeserializeObject(ss);
assertTrue(ss.equals(ss1));
}
}

View File

@ -194,11 +194,11 @@ public class TestRecordingFile {
rotator.stop();
}
r2.stop();
r2.dump(twoEventTypes);;
r2.dump(twoEventTypes);
}
FlightRecorder.register(Event3.class);
r1.stop();
r1.dump(threeEventTypes);;
r1.dump(threeEventTypes);
}
try (RecordingFile f = new RecordingFile(twoEventTypes)) {
List<EventType> types = f.readEventTypes();

View File

@ -89,7 +89,7 @@ public class TestReuse {
es.setReuse(true);
es.onEvent(e -> {
if(events.containsKey(e)) {
success.set(true);;
success.set(true);
es.close();
}
events.put(e,e);

View File

@ -101,7 +101,7 @@ public class TestEventTime {
MyEvent event = new MyEvent(id);
event.begin();
if (!CommonHelper.hasFastTimeEnabled()) {
CommonHelper.waitForSystemCurrentMillisToChange();;
CommonHelper.waitForSystemCurrentMillisToChange();
}
actualOrder.add(new TimeEvent(id, true));
return event;
@ -110,7 +110,7 @@ public class TestEventTime {
private static void endEvent(MyEvent event) throws Exception {
event.end();
if (!CommonHelper.hasFastTimeEnabled()) {
CommonHelper.waitForSystemCurrentMillisToChange();;
CommonHelper.waitForSystemCurrentMillisToChange();
}
event.commit();
actualOrder.add(new TimeEvent(event.id, false));

View File

@ -58,8 +58,8 @@ public final class TestActiveSettingEvent {
private static final String ACTIVE_SETTING_EVENT_NAME = EventNames.ActiveSetting;
public static void main(String[] args) throws Throwable {
testDefaultSettings();;
testProfileSettings();;
testDefaultSettings();
testProfileSettings();
testNewSettings();
testChangedSetting();
testUnregistered();

View File

@ -58,9 +58,9 @@ public class ToolTipDemo extends JPanel {
public static final String DEMO_TITLE = ToolTipDemo.class.getAnnotation(DemoProperties.class).value();
private final static ResourceManager resourceManager = new ResourceManager(ToolTipDemo.class);
public static final String PLAIN_TOOLTIP_COMP_TITLE = resourceManager.getString("ToolTipDemo.plain");;
public static final String PLAIN_TOOLTIP_COMP_TITLE = resourceManager.getString("ToolTipDemo.plain");
public static final String PLAIN_TOOLTIP_TEXT = "A simple one line tip.";
public static final String HTML_TOOLTIP_COMP_TITLE = resourceManager.getString("ToolTipDemo.html");;
public static final String HTML_TOOLTIP_COMP_TITLE = resourceManager.getString("ToolTipDemo.html");
public static final String HTML_TOOLTIP_TEXT = "<html><body bgcolor=\"#AABBFF\">In case you thought that tooltips had to be<p>" +
"boring, one line descriptions, the <font color=blue size=+2>Swing!</font> team<p>" +
"is happy to shatter your illusions.<p>" +

View File

@ -258,7 +258,7 @@ public class ImageFactory {
for (int j = 0; j < HEIGHT; j++) {
pixel[0] = (i/255.0)*(cs.getMaxValue(0) -
cs.getMinValue(0)) +
cs.getMinValue(0);;
cs.getMinValue(0);
sm.setPixel(i, j, pixel, data);
}
}
@ -268,7 +268,7 @@ public class ImageFactory {
for (int j = 0; j < HEIGHT; j++) {
pixel[0] = (i/255.0f)*(cs.getMaxValue(0) -
cs.getMinValue(0)) +
cs.getMinValue(0);;
cs.getMinValue(0);
sm.setPixel(i, j, pixel, data);
}
}

View File

@ -348,7 +348,7 @@ public class CPBuilder {
for (String key : certmap.keySet()) {
String certStr = certmap.get(key);
ByteArrayInputStream is =
new ByteArrayInputStream(certStr.getBytes());;
new ByteArrayInputStream(certStr.getBytes());
Certificate cert = cf.generateCertificate(is);
entries.add(cert);
}

View File

@ -353,7 +353,7 @@ public class CPBuilderWithMD5 {
for (String key : certmap.keySet()) {
String certStr = certmap.get(key);
ByteArrayInputStream is =
new ByteArrayInputStream(certStr.getBytes());;
new ByteArrayInputStream(certStr.getBytes());
Certificate cert = cf.generateCertificate(is);
entries.add(cert);
}

View File

@ -134,7 +134,7 @@ public class BasicLauncherTest {
launcher.addToolArg("--pid=" + Long.toString(theApp.getPid()));
ProcessBuilder processBuilder = SATestUtils.createProcessBuilder(launcher);
OutputAnalyzer output = ProcessTools.executeProcess(processBuilder);;
OutputAnalyzer output = ProcessTools.executeProcess(processBuilder);
output.shouldContain("No deadlocks found");
output.shouldNotContain("illegal bci");
output.shouldNotContain("AssertionFailure");
@ -171,7 +171,7 @@ public class BasicLauncherTest {
ProcessBuilder processBuilder = SATestUtils.createProcessBuilder(launcher);
processBuilder.redirectError(ProcessBuilder.Redirect.INHERIT);
OutputAnalyzer output = ProcessTools.executeProcess(processBuilder);;
OutputAnalyzer output = ProcessTools.executeProcess(processBuilder);
output.shouldContain(expectedMessage);
unexpectedMessage.ifPresent(output::shouldNotContain);
output.shouldHaveExitValue(0);

View File

@ -123,7 +123,7 @@ public class Basic {
moduleName = mn; mainClass = mc; version = v; message = m; hashes = h;
this.requires = requires != null ? requires : Collections.emptySet();
this.exports = exports != null ? exports : Collections.emptySet();
this.uses = uses != null ? uses : Collections.emptySet();;
this.uses = uses != null ? uses : Collections.emptySet();
this.provides = provides != null ? provides : Collections.emptySet();
this.packages = Stream.concat(this.exports.stream(), contains.stream())
.collect(Collectors.toSet());

View File

@ -12,7 +12,7 @@ public class Nested {
int save = getVersion();
class nestnested {
int save = getVersion();;
int save = getVersion();
}
}
}

View File

@ -104,7 +104,7 @@ public class JavadocTaskImplTest extends APITest {
File outDir = getOutDir();
fm.setLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT, Arrays.asList(outDir));
try {
DocumentationTask t = new JavadocTaskImpl(c, null, null, files);;
DocumentationTask t = new JavadocTaskImpl(c, null, null, files);
error("getTask succeeded, no exception thrown");
} catch (NullPointerException e) {
System.err.println("exception caught as expected: " + e);

View File

@ -340,7 +340,7 @@ public class VariablesTest extends KullaTesting {
//assertEquals(getState().source(snippet), src);
//assertEquals(snippet, undefKey);
assertEquals(getState().status(undefKey), RECOVERABLE_NOT_DEFINED);
List<String> unr = getState().unresolvedDependencies((VarSnippet) undefKey).collect(toList());;
List<String> unr = getState().unresolvedDependencies((VarSnippet) undefKey).collect(toList());
assertEquals(unr.size(), 1);
assertEquals(unr.get(0), "class undefined");
assertVariables(variable("undefined", "d"));

View File

@ -59,7 +59,7 @@ public class RunTest {
System.err.println("test: " + m.getName());
try {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);;
PrintWriter pw = new PrintWriter(sw);
m.invoke(this, new Object[] { pw });
String out = sw.toString();
System.err.println(">>> " + out.replace("\n", "\n>>> "));

View File

@ -46,7 +46,7 @@ public class T4954546 {
f(true, new A(), new B());
}
static void f(boolean cond, A a, B b) {
(cond?a:b).f();;
(cond?a:b).g();;
(cond?a:b).f();
(cond?a:b).g();
}
}