Skip to content

Commit 187fbe1

Browse files
andy-goryachev-oraclenlisker
authored andcommittedJul 8, 2022
8289381: Fix warnings: The assignment to variable has no effect
Reviewed-by: nlisker
1 parent 60c75b8 commit 187fbe1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎modules/javafx.fxml/src/test/java/test/com/sun/javafx/fxml/builder/ClassWithCollection.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -43,7 +43,6 @@ protected void onChanged(ListChangeListener.Change<Integer> c) {}
4343

4444
public ClassWithCollection(@NamedArg("a") double a) {
4545
this.a = a;
46-
this.b = b;
4746
}
4847

4948
public ClassWithCollection(@NamedArg("a") double a, @NamedArg("b") double b) {

‎modules/javafx.graphics/src/test/java/test/com/sun/javafx/css/BooleanTypeTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2010, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -53,7 +53,7 @@ public void testConvert() {
5353
Boolean result = value.convert(font);
5454
assertEquals(expResult, result);
5555

56-
value = value = new ParsedValueImpl<String,Boolean>("false", BooleanConverter.getInstance());
56+
value = new ParsedValueImpl<String,Boolean>("false", BooleanConverter.getInstance());
5757
expResult = Boolean.FALSE;
5858
result = value.convert(font);
5959
assertEquals(expResult, result);

0 commit comments

Comments
 (0)
Please sign in to comment.