Mon, 16 Sep 2013 14:13:44 +0200
8021112: Spurious unchecked warning reported by javac
6480588: No way to suppress deprecation warnings when implementing deprecated interface
Summary: Fixing DeferredLintHandler configuration, so lint warnings are reported with correct @SuppressWarnings settings
Reviewed-by: jjg, vromero
jjg@1606 | 1 | /* |
jjg@1606 | 2 | * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
jjg@1606 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
jjg@1606 | 4 | * |
jjg@1606 | 5 | * This code is free software; you can redistribute it and/or modify it |
jjg@1606 | 6 | * under the terms of the GNU General Public License version 2 only, as |
jjg@1606 | 7 | * published by the Free Software Foundation. |
jjg@1606 | 8 | * |
jjg@1606 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
jjg@1606 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
jjg@1606 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
jjg@1606 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
jjg@1606 | 13 | * accompanied this code). |
jjg@1606 | 14 | * |
jjg@1606 | 15 | * You should have received a copy of the GNU General Public License version |
jjg@1606 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
jjg@1606 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
jjg@1606 | 18 | * |
jjg@1606 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
jjg@1606 | 20 | * or visit www.oracle.com if you need additional information or have any |
jjg@1606 | 21 | * questions. |
jjg@1606 | 22 | */ |
jjg@1606 | 23 | |
jjg@1606 | 24 | /** |
jjg@1606 | 25 | * @expert Expert tag text |
jjg@1606 | 26 | */ |
jjg@1606 | 27 | |
jjg@1606 | 28 | public class C { |
jjg@1606 | 29 | |
jjg@1606 | 30 | /** |
jjg@1606 | 31 | * @propertySetter Property |
jjg@1606 | 32 | * @propertyDescription PropertyDescription |
jjg@1606 | 33 | */ |
jjg@1606 | 34 | public void CC() {} |
jjg@1606 | 35 | |
jjg@1606 | 36 | /** |
jjg@1606 | 37 | * @propertyGetter Property |
jjg@1606 | 38 | * @expert Expert tag text |
jjg@1606 | 39 | * |
jjg@1606 | 40 | */ |
jjg@1606 | 41 | public void B() {} |
jjg@1606 | 42 | |
jjg@1606 | 43 | /** |
jjg@1606 | 44 | * Method A documentation |
jjg@1606 | 45 | * @treatAsPrivate |
jjg@1606 | 46 | */ |
jjg@1606 | 47 | public void A() {} |
jjg@1606 | 48 | |
jjg@1606 | 49 | /** |
jjg@1606 | 50 | * Field i |
jjg@1606 | 51 | * @defaultValue 1.0 |
jjg@1606 | 52 | */ |
jjg@1606 | 53 | public int i; |
jjg@1606 | 54 | |
jjg@1606 | 55 | |
jjg@1606 | 56 | /** |
jjg@1606 | 57 | * Defines the direction/speed at which the {@code Timeline} is expected to |
jjg@1606 | 58 | * be played. |
jjg@1606 | 59 | * @defaultValue 11 |
janvalenta@1866 | 60 | * @since JavaFX 8.0 |
jjg@1606 | 61 | */ |
jjg@1606 | 62 | private DoubleProperty rate; |
jjg@1606 | 63 | |
jjg@1606 | 64 | public final void setRate(double value) {} |
jjg@1606 | 65 | |
jjg@1606 | 66 | public final double getRate() {} |
jjg@1606 | 67 | |
jjg@1606 | 68 | public final DoubleProperty rateProperty() {} |
jjg@1606 | 69 | |
jjg@1606 | 70 | private BooleanProperty paused; |
jjg@1606 | 71 | |
jjg@1606 | 72 | public final void setPaused(boolean value) {} |
jjg@1606 | 73 | |
jjg@1606 | 74 | public final double isPaused() {} |
jjg@1606 | 75 | |
jjg@1606 | 76 | /** |
jjg@1606 | 77 | * Defines if paused |
jjg@1606 | 78 | * @defaultValue false |
jjg@1606 | 79 | */ |
jjg@1606 | 80 | public final BooleanProperty pausedProperty() {} |
jjg@1606 | 81 | |
jjg@1606 | 82 | class DoubleProperty {} |
jjg@1606 | 83 | |
jjg@1606 | 84 | class BooleanProperty {} |
jjg@1606 | 85 | |
jjg@1606 | 86 | public final BooleanProperty setTestMethodProperty() {} |
jjg@1606 | 87 | |
jjg@1606 | 88 | private class Inner { |
jjg@1606 | 89 | private BooleanProperty testMethodProperty() {} |
jjg@1606 | 90 | |
jjg@1606 | 91 | /** |
jjg@1606 | 92 | * Defines the direction/speed at which the {@code Timeline} is expected to |
jjg@1606 | 93 | * be played. |
jjg@1606 | 94 | * @defaultValue 11 |
jjg@1606 | 95 | */ |
jjg@1606 | 96 | private DoubleProperty rate; |
jjg@1606 | 97 | |
jjg@1606 | 98 | public final void setRate(double value) {} |
jjg@1606 | 99 | |
jjg@1606 | 100 | public final double getRate() {} |
jjg@1606 | 101 | |
jjg@1606 | 102 | public final DoubleProperty rateProperty() {} |
jjg@1606 | 103 | } |
jjg@1606 | 104 | } |