Skip to content

Commit 93e3bb2

Browse files
author
Andy Goryachev
committed
8328751: Fix missing @OVERRIDES in modules except javafx.web
Reviewed-by: kcr
1 parent 611555e commit 93e3bb2

File tree

9 files changed

+30
-8
lines changed

9 files changed

+30
-8
lines changed

modules/javafx.base/src/test/java/test/javafx/binding/GenericBindingTest.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2024, 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
@@ -427,6 +427,7 @@ public ObservableList<?> getDependencies() {
427427
return null;
428428
}
429429

430+
@Override
430431
public void publicUnbind(Observable... observables) {
431432
super.unbind(observables);
432433
}
@@ -464,6 +465,7 @@ public ObservableList<?> getDependencies() {
464465
return null;
465466
}
466467

468+
@Override
467469
public void publicUnbind(Observable... observables) {
468470
super.unbind(observables);
469471
}
@@ -501,6 +503,7 @@ public ObservableList<?> getDependencies() {
501503
return null;
502504
}
503505

506+
@Override
504507
public void publicUnbind(Observable... observables) {
505508
super.unbind(observables);
506509
}
@@ -538,6 +541,7 @@ public ObservableList<?> getDependencies() {
538541
return null;
539542
}
540543

544+
@Override
541545
public void publicUnbind(Observable... observables) {
542546
super.unbind(observables);
543547
}
@@ -575,6 +579,7 @@ public ObservableList<?> getDependencies() {
575579
return null;
576580
}
577581

582+
@Override
578583
public void publicUnbind(Observable... observables) {
579584
super.unbind(observables);
580585
}
@@ -612,6 +617,7 @@ public ObservableList<?> getDependencies() {
612617
return null;
613618
}
614619

620+
@Override
615621
public void publicUnbind(Observable... observables) {
616622
super.unbind(observables);
617623
}
@@ -649,6 +655,7 @@ public ObservableList<?> getDependencies() {
649655
return null;
650656
}
651657

658+
@Override
652659
public void publicUnbind(Observable... observables) {
653660
super.unbind(observables);
654661
}
@@ -686,6 +693,7 @@ public ObservableList<?> getDependencies() {
686693
return null;
687694
}
688695

696+
@Override
689697
public void publicUnbind(Observable... observables) {
690698
super.unbind(observables);
691699
}

modules/javafx.controls/src/main/java/javafx/scene/control/skin/VirtualFlow.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3290,14 +3290,17 @@ public ArrayLinkedList() {
32903290
}
32913291
}
32923292

3293+
@Override
32933294
public T getFirst() {
32943295
return firstIndex == -1 ? null : array.get(firstIndex);
32953296
}
32963297

3298+
@Override
32973299
public T getLast() {
32983300
return lastIndex == -1 ? null : array.get(lastIndex);
32993301
}
33003302

3303+
@Override
33013304
public void addFirst(T cell) {
33023305
// if firstIndex == -1 then that means this is the first item in the
33033306
// list and we need to initialize firstIndex and lastIndex
@@ -3316,6 +3319,7 @@ public void addFirst(T cell) {
33163319
}
33173320
}
33183321

3322+
@Override
33193323
public void addLast(T cell) {
33203324

33213325
// if lastIndex == -1 then that means this is the first item in the
@@ -3362,11 +3366,13 @@ public void clear() {
33623366
firstIndex = lastIndex = -1;
33633367
}
33643368

3369+
@Override
33653370
public T removeFirst() {
33663371
if (isEmpty()) return null;
33673372
return remove(0);
33683373
}
33693374

3375+
@Override
33703376
public T removeLast() {
33713377
if (isEmpty()) return null;
33723378
return remove(lastIndex - firstIndex);

modules/javafx.graphics/src/main/java/com/sun/javafx/font/CompositeFontResource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2024, 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
@@ -42,6 +42,7 @@ default public int addSlotFont(FontResource font) {
4242
*/
4343
public int getSlotForFont(String fontName);
4444

45+
@Override
4546
default boolean isColorGlyph(int glyphCode) {
4647
int slot = (glyphCode >>> 24);
4748
int slotglyphCode = glyphCode & CompositeGlyphMapper.GLYPHMASK;

modules/javafx.graphics/src/main/java/com/sun/javafx/font/FallbackResource.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2024, 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
@@ -272,6 +272,7 @@ private int addNativeFallback(FontResource fr) {
272272
return ns+1;
273273
}
274274

275+
@Override
275276
public int addSlotFont(FontResource fr) {
276277
int slot = getSlotForFont(fr.getFullName());
277278
if (slot >= 0) {
@@ -366,6 +367,7 @@ public FontStrike getStrike(float size, BaseTransform transform,
366367
return strike;
367368
}
368369

370+
@Override
369371
public String toString() {
370372
int ns = getNumSlots();
371373
String s = "Fallback resource:\n";

modules/javafx.graphics/src/main/java/com/sun/javafx/font/LogicalFont.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2024, 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
@@ -304,6 +304,7 @@ private int addNativeFallback(FontResource fr) {
304304
return ns;
305305
}
306306

307+
@Override
307308
public int addSlotFont(FontResource fr) {
308309
if (fr == null) {
309310
return -1;

modules/javafx.graphics/src/main/java/com/sun/javafx/font/PrismFontFile.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2024, 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
@@ -1420,6 +1420,7 @@ private synchronized boolean fontSupportsColorGlyphs() {
14201420
return hasColorTables;
14211421
}
14221422

1423+
@Override
14231424
public boolean isColorGlyph(int glyphID) {
14241425
if (!fontSupportsColorGlyphs()) {
14251426
return false;

modules/javafx.graphics/src/main/java/com/sun/javafx/font/coretext/CTFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2024, 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
@@ -100,6 +100,7 @@ public boolean isExcluded(String name) {
100100
return name.startsWith(".") || name.startsWith("System Font");
101101
}
102102

103+
@Override
103104
public FontFallbackInfo getFallbacks(FontResource primaryResource) {
104105
FontFallbackInfo info = new FontFallbackInfo();
105106
ArrayList<String> names;

modules/javafx.graphics/src/main/java/com/sun/javafx/font/directwrite/DWFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2024, 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
@@ -160,6 +160,7 @@ static synchronized ID2D1Factory getD2DFactory() {
160160
/*
161161
* Ignoring the primary on Windows - this should change some day.
162162
*/
163+
@Override
163164
public FontFallbackInfo getFallbacks(FontResource primaryResource) {
164165
FontFallbackInfo info = new FontFallbackInfo();
165166

modules/javafx.graphics/src/main/java/com/sun/javafx/font/freetype/FTFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2024, 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
@@ -127,6 +127,7 @@ public void layout(TextRun run, PGFont font, FontStrike strike, char[] text) {
127127
}
128128
}
129129

130+
@Override
130131
public FontFallbackInfo getFallbacks(FontResource primaryResource) {
131132
boolean isBold = primaryResource.isBold();
132133
boolean isItalic = primaryResource.isItalic();

0 commit comments

Comments
 (0)