This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 221381
Collapse All | Expand All

(-)a/api.annotations.common/apichanges.xml (+16 lines)
Lines 108-113 Link Here
108
    <!-- ACTUAL CHANGES BEGIN HERE: -->
108
    <!-- ACTUAL CHANGES BEGIN HERE: -->
109
109
110
    <changes>
110
    <changes>
111
        <change id="SuppressWarningsJustification">
112
            <api name="common_annotations_api"/>
113
            <summary>Added justification attribute to <code>SuppressWarnings</code></summary>
114
            <version major="1" minor="19"/>
115
            <date day="1" month="2" year="2013"/>
116
            <author login="phejl"/>
117
            <compatibility addition="yes"/>
118
            <description>
119
                <p>
120
                    Introduced justificatio attribute to specify why it is ok to
121
                    suppress a warning.
122
                </p>
123
            </description>
124
            <class package="org.netbeans.api.annotations.common" name="SuppressWarnings"/>
125
            <issue number="221381"/>
126
        </change>
111
        <change id="StaticResource">
127
        <change id="StaticResource">
112
            <api name="common_annotations_api"/>
128
            <api name="common_annotations_api"/>
113
            <summary>Added <code>StaticResource</code></summary>
129
            <summary>Added <code>StaticResource</code></summary>
(-)a/api.annotations.common/manifest.mf (-1 / +1 lines)
Lines 2-6 Link Here
2
AutoUpdate-Show-In-Client: false
2
AutoUpdate-Show-In-Client: false
3
OpenIDE-Module: org.netbeans.api.annotations.common/1
3
OpenIDE-Module: org.netbeans.api.annotations.common/1
4
OpenIDE-Module-Localizing-Bundle: org/netbeans/annotations/common/resources/Bundle.properties
4
OpenIDE-Module-Localizing-Bundle: org/netbeans/annotations/common/resources/Bundle.properties
5
OpenIDE-Module-Specification-Version: 1.18
5
OpenIDE-Module-Specification-Version: 1.19
6
6
(-)a/api.annotations.common/src/org/netbeans/api/annotations/common/SuppressWarnings.java (+9 lines)
Lines 62-65 Link Here
62
     */
62
     */
63
    String[] value() default {};
63
    String[] value() default {};
64
64
65
    /**
66
     * The justification for the suppression. Should be human readable
67
     * description explaining why it is ok to suppress the message(s).
68
     *
69
     * @return the justification for the suppression
70
     * @since 1.19
71
     */
72
    String justification() default "";
73
65
}
74
}
(-)a/j2ee.dd/build.xml (-13 / +13 lines)
Lines 86-92 Link Here
86
	  removeUnreferencedNodes="true"
86
	  removeUnreferencedNodes="true"
87
	  rootDir="src"
87
	  rootDir="src"
88
          java5="true"/>
88
          java5="true"/>
89
        <echo file="${s2b_root_web_2_4}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.web.model_2_4;</echo>
89
        <echo file="${s2b_root_web_2_4}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.web.model_2_4;</echo>
90
	<schema2beans schema="${s2b_res_root}/web-app_2_5.xsd"
90
	<schema2beans schema="${s2b_res_root}/web-app_2_5.xsd"
91
	  mddFile="${s2b_res_root}/web-app_2_5.mdd"
91
	  mddFile="${s2b_res_root}/web-app_2_5.mdd"
92
	  package="org.netbeans.modules.j2ee.dd.impl.web.model_2_5"
92
	  package="org.netbeans.modules.j2ee.dd.impl.web.model_2_5"
Lines 97-103 Link Here
97
	  removeUnreferencedNodes="true"
97
	  removeUnreferencedNodes="true"
98
	  rootDir="src"
98
	  rootDir="src"
99
          java5="true"/>
99
          java5="true"/>
100
        <echo file="${s2b_root_web_2_5}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.web.model_2_5;</echo>
100
        <echo file="${s2b_root_web_2_5}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.web.model_2_5;</echo>
101
	<schema2beans schema="${s2b_res_root}/web-app_3_0.xsd"
101
	<schema2beans schema="${s2b_res_root}/web-app_3_0.xsd"
102
	  mddFile="${s2b_res_root}/web-app_3_0.mdd"
102
	  mddFile="${s2b_res_root}/web-app_3_0.mdd"
103
	  package="org.netbeans.modules.j2ee.dd.impl.web.model_3_0"
103
	  package="org.netbeans.modules.j2ee.dd.impl.web.model_3_0"
Lines 108-114 Link Here
108
	  removeUnreferencedNodes="true"
108
	  removeUnreferencedNodes="true"
109
	  rootDir="src"
109
	  rootDir="src"
110
          java5="true"/>
110
          java5="true"/>
111
        <echo file="${s2b_root_web_3_0}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.web.model_3_0;</echo>
111
        <echo file="${s2b_root_web_3_0}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.web.model_3_0;</echo>
112
	<schema2beans schema="${s2b_res_root}/web-fragment_3_0.xsd"
112
	<schema2beans schema="${s2b_res_root}/web-fragment_3_0.xsd"
113
	  mddFile="${s2b_res_root}/web-fragment_3_0.mdd"
113
	  mddFile="${s2b_res_root}/web-fragment_3_0.mdd"
114
	  package="org.netbeans.modules.j2ee.dd.impl.web.model_3_0_frag"
114
	  package="org.netbeans.modules.j2ee.dd.impl.web.model_3_0_frag"
Lines 119-125 Link Here
119
	  removeUnreferencedNodes="true"
119
	  removeUnreferencedNodes="true"
120
	  rootDir="src"
120
	  rootDir="src"
121
          java5="true"/>
121
          java5="true"/>
122
        <echo file="${s2b_root_web_3_0_frag}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.web.model_3_0_frag;</echo>
122
        <echo file="${s2b_root_web_3_0_frag}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.web.model_3_0_frag;</echo>
123
123
124
    <replace file="${s2b_root_web_2_5}/ServletMapping.java" summary="true">
124
    <replace file="${s2b_root_web_2_5}/ServletMapping.java" summary="true">
125
        <replacetoken>public java.lang.String[] getUrlPattern() {</replacetoken>
125
        <replacetoken>public java.lang.String[] getUrlPattern() {</replacetoken>
Lines 288-294 Link Here
288
	  removeUnreferencedNodes="true"
288
	  removeUnreferencedNodes="true"
289
	  rootDir="src"
289
	  rootDir="src"
290
          java5="true"/>
290
          java5="true"/>
291
        <echo file="${s2b_root_2_1}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.ejb.model_2_1;</echo>
291
        <echo file="${s2b_root_2_1}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.ejb.model_2_1;</echo>
292
	<schema2beans schema="${s2b_res_root}/ejb-jar_3_0.xsd"
292
	<schema2beans schema="${s2b_res_root}/ejb-jar_3_0.xsd"
293
 	  mddFile="${s2b_res_root}/ejb-jar_3_0.mdd"
293
 	  mddFile="${s2b_res_root}/ejb-jar_3_0.mdd"
294
	  package="org.netbeans.modules.j2ee.dd.impl.ejb.model_3_0"
294
	  package="org.netbeans.modules.j2ee.dd.impl.ejb.model_3_0"
Lines 299-305 Link Here
299
	  removeUnreferencedNodes="true"
299
	  removeUnreferencedNodes="true"
300
	  rootDir="src"
300
	  rootDir="src"
301
          java5="true"/>
301
          java5="true"/>
302
        <echo file="${s2b_root_3_0}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.ejb.model_3_0;</echo>
302
        <echo file="${s2b_root_3_0}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.ejb.model_3_0;</echo>
303
	<schema2beans schema="${s2b_res_root}/ejb-jar_3_1.xsd"
303
	<schema2beans schema="${s2b_res_root}/ejb-jar_3_1.xsd"
304
 	  mddFile="${s2b_res_root}/ejb-jar_3_1.mdd"
304
 	  mddFile="${s2b_res_root}/ejb-jar_3_1.mdd"
305
	  package="org.netbeans.modules.j2ee.dd.impl.ejb.model_3_1"
305
	  package="org.netbeans.modules.j2ee.dd.impl.ejb.model_3_1"
Lines 310-316 Link Here
310
	  removeUnreferencedNodes="true"
310
	  removeUnreferencedNodes="true"
311
	  rootDir="src"
311
	  rootDir="src"
312
          java5="true"/>
312
          java5="true"/>
313
        <echo file="${s2b_root_3_1}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.ejb.model_3_1;</echo>
313
        <echo file="${s2b_root_3_1}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.ejb.model_3_1;</echo>
314
    <replace file="${s2b_root_3_1}/EjbJar.java" summary="true">
314
    <replace file="${s2b_root_3_1}/EjbJar.java" summary="true">
315
        <replacetoken>public java.lang.String getVersion() {</replacetoken>
315
        <replacetoken>public java.lang.String getVersion() {</replacetoken>
316
        <replacevalue>public java.lang.String getVersionString() {</replacevalue>
316
        <replacevalue>public java.lang.String getVersionString() {</replacevalue>
Lines 337-343 Link Here
337
	  removeUnreferencedNodes="true"
337
	  removeUnreferencedNodes="true"
338
	  rootDir="src"
338
	  rootDir="src"
339
          java5="true"/>
339
          java5="true"/>
340
        <echo file="${s2b_root_app_1_4}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.application.model_1_4;</echo>
340
        <echo file="${s2b_root_app_1_4}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.application.model_1_4;</echo>
341
        <schema2beans schema="${s2b_res_root}/application_5.xsd"
341
        <schema2beans schema="${s2b_res_root}/application_5.xsd"
342
 	  mddFile="${s2b_res_root}/application_5.mdd"
342
 	  mddFile="${s2b_res_root}/application_5.mdd"
343
	  package="org.netbeans.modules.j2ee.dd.impl.application.model_5"
343
	  package="org.netbeans.modules.j2ee.dd.impl.application.model_5"
Lines 348-354 Link Here
348
	  removeUnreferencedNodes="true"
348
	  removeUnreferencedNodes="true"
349
	  rootDir="src"
349
	  rootDir="src"
350
          java5="true"/>
350
          java5="true"/>
351
        <echo file="${s2b_root_app_5}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.application.model_5;</echo>
351
        <echo file="${s2b_root_app_5}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.application.model_5;</echo>
352
        <schema2beans schema="${s2b_res_root}/application_6.xsd"
352
        <schema2beans schema="${s2b_res_root}/application_6.xsd"
353
 	  mddFile="${s2b_res_root}/application_6.mdd"
353
 	  mddFile="${s2b_res_root}/application_6.mdd"
354
	  package="org.netbeans.modules.j2ee.dd.impl.application.model_6"
354
	  package="org.netbeans.modules.j2ee.dd.impl.application.model_6"
Lines 359-365 Link Here
359
	  removeUnreferencedNodes="true"
359
	  removeUnreferencedNodes="true"
360
	  rootDir="src"
360
	  rootDir="src"
361
          java5="true"/>
361
          java5="true"/>
362
        <echo file="${s2b_root_app_6}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.application.model_6;</echo>
362
        <echo file="${s2b_root_app_6}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.application.model_6;</echo>
363
    <replace file="${s2b_root_app_6}/Application.java" summary="true">
363
    <replace file="${s2b_root_app_6}/Application.java" summary="true">
364
        <replacetoken>public java.lang.String getVersion() {</replacetoken>
364
        <replacetoken>public java.lang.String getVersion() {</replacetoken>
365
        <replacevalue>public java.lang.String getVersionString() {</replacevalue>
365
        <replacevalue>public java.lang.String getVersionString() {</replacevalue>
Lines 386-392 Link Here
386
	  removeUnreferencedNodes="true"
386
	  removeUnreferencedNodes="true"
387
	  rootDir="src"
387
	  rootDir="src"
388
          java5="true"/>
388
          java5="true"/>
389
        <echo file="${s2b_root_client_1_4}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.client.model_1_4;</echo>
389
        <echo file="${s2b_root_client_1_4}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.client.model_1_4;</echo>
390
        <schema2beans schema="${s2b_res_root}/application-client_5.xsd"
390
        <schema2beans schema="${s2b_res_root}/application-client_5.xsd"
391
 	  mddFile="${s2b_res_root}/application-client_5.mdd"
391
 	  mddFile="${s2b_res_root}/application-client_5.mdd"
392
	  package="org.netbeans.modules.j2ee.dd.impl.client.model_5_0"
392
	  package="org.netbeans.modules.j2ee.dd.impl.client.model_5_0"
Lines 397-403 Link Here
397
	  removeUnreferencedNodes="true"
397
	  removeUnreferencedNodes="true"
398
	  rootDir="src"
398
	  rootDir="src"
399
          java5="true"/>
399
          java5="true"/>
400
        <echo file="${s2b_root_client_5_0}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.client.model_5_0;</echo>
400
        <echo file="${s2b_root_client_5_0}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.client.model_5_0;</echo>
401
        <schema2beans schema="${s2b_res_root}/application-client_6.xsd"
401
        <schema2beans schema="${s2b_res_root}/application-client_6.xsd"
402
 	  mddFile="${s2b_res_root}/application-client_6.mdd"
402
 	  mddFile="${s2b_res_root}/application-client_6.mdd"
403
	  package="org.netbeans.modules.j2ee.dd.impl.client.model_6_0"
403
	  package="org.netbeans.modules.j2ee.dd.impl.client.model_6_0"
Lines 408-414 Link Here
408
	  removeUnreferencedNodes="true"
408
	  removeUnreferencedNodes="true"
409
	  rootDir="src"
409
	  rootDir="src"
410
          java5="true"/>
410
          java5="true"/>
411
        <echo file="${s2b_root_client_6_0}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"${line.separator}package org.netbeans.modules.j2ee.dd.impl.client.model_6_0;</echo>
411
        <echo file="${s2b_root_client_6_0}/package-info.java">@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")${line.separator}package org.netbeans.modules.j2ee.dd.impl.client.model_6_0;</echo>
412
    <replace file="${s2b_root_client_6_0}/ApplicationClient.java" summary="true">
412
    <replace file="${s2b_root_client_6_0}/ApplicationClient.java" summary="true">
413
        <replacetoken>public java.lang.String getVersion() {</replacetoken>
413
        <replacetoken>public java.lang.String getVersion() {</replacetoken>
414
        <replacevalue>public java.lang.String getVersionString() {</replacevalue>
414
        <replacevalue>public java.lang.String getVersionString() {</replacevalue>
(-)a/j2ee.dd/nbproject/project.xml (-1 / +1 lines)
Lines 55-61 Link Here
55
                    <compile-dependency/>
55
                    <compile-dependency/>
56
                    <run-dependency>
56
                    <run-dependency>
57
                        <release-version>1</release-version>
57
                        <release-version>1</release-version>
58
                        <specification-version>1.16</specification-version>
58
                        <specification-version>1.19</specification-version>
59
                    </run-dependency>
59
                    </run-dependency>
60
                </dependency>
60
                </dependency>
61
                <dependency>
61
                <dependency>
(-)a/j2ee.dd/src/org/netbeans/modules/j2ee/dd/api/client/DDProvider.java (-1 / +1 lines)
Lines 72-78 Link Here
72
 *
72
 *
73
 * @author  Milan Kuchtiak
73
 * @author  Milan Kuchtiak
74
 */
74
 */
75
@org.netbeans.api.annotations.common.SuppressWarnings("DMI_COLLECTION_OF_URLS") // justification="File URLs only"
75
@org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_COLLECTION_OF_URLS", justification="File URLs only")
76
public final class DDProvider {
76
public final class DDProvider {
77
    
77
    
78
    private static final DDProvider ddProvider = new DDProvider();
78
    private static final DDProvider ddProvider = new DDProvider();
(-)a/j2ee.dd/src/org/netbeans/modules/j2ee/dd/api/web/DDProvider.java (-1 / +1 lines)
Lines 67-73 Link Here
67
 *
67
 *
68
 * @author  Milan Kuchtiak
68
 * @author  Milan Kuchtiak
69
 */
69
 */
70
@org.netbeans.api.annotations.common.SuppressWarnings("DMI_COLLECTION_OF_URLS") // justification="File URLs only"
70
@org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_COLLECTION_OF_URLS", justification="File URLs only")
71
public final class DDProvider {
71
public final class DDProvider {
72
    private static DDProvider ddProvider;
72
    private static DDProvider ddProvider;
73
    private final Map<URL, WeakReference<WebAppProxy>> ddMap;
73
    private final Map<URL, WeakReference<WebAppProxy>> ddMap;
(-)a/j2ee.persistence/nbproject/project.xml (-1 / +1 lines)
Lines 55-61 Link Here
55
                    <compile-dependency/>
55
                    <compile-dependency/>
56
                    <run-dependency>
56
                    <run-dependency>
57
                        <release-version>1</release-version>
57
                        <release-version>1</release-version>
58
                        <specification-version>1.17</specification-version>
58
                        <specification-version>1.19</specification-version>
59
                    </run-dependency>
59
                    </run-dependency>
60
                </dependency>
60
                </dependency>
61
                <dependency>
61
                <dependency>
(-)a/j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/dd/orm/model_1_0/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    removeUnreferencedNodes=true,
52
    removeUnreferencedNodes=true,
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.persistence.dd.orm.model_1_0;
56
package org.netbeans.modules.j2ee.persistence.dd.orm.model_1_0;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/dd/orm/model_2_0/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    removeUnreferencedNodes=true,
52
    removeUnreferencedNodes=true,
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.persistence.dd.orm.model_2_0;
56
package org.netbeans.modules.j2ee.persistence.dd.orm.model_2_0;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/dd/persistence/model_1_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    removeUnreferencedNodes=true,
51
    removeUnreferencedNodes=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.persistence.dd.persistence.model_1_0;
55
package org.netbeans.modules.j2ee.persistence.dd.persistence.model_1_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/dd/persistence/model_2_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    removeUnreferencedNodes=true,
51
    removeUnreferencedNodes=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.persistence.dd.persistence.model_2_0;
55
package org.netbeans.modules.j2ee.persistence.dd.persistence.model_2_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/nbproject/project.xml (-1 / +1 lines)
Lines 55-61 Link Here
55
                    <compile-dependency/>
55
                    <compile-dependency/>
56
                    <run-dependency>
56
                    <run-dependency>
57
                        <release-version>1</release-version>
57
                        <release-version>1</release-version>
58
                        <specification-version>1.16</specification-version>
58
                        <specification-version>1.19</specification-version>
59
                    </run-dependency>
59
                    </run-dependency>
60
                </dependency>
60
                </dependency>
61
                <dependency>
61
                <dependency>
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_1_3_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_1_3_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_1_3_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_1_4_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_1_4_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_1_4_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_5_0_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_5_0_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_5_0_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_6_0_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_6_0_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_6_0_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/app/model_6_0_1/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_6_0_1;
55
package org.netbeans.modules.j2ee.sun.dd.impl.app.model_6_0_1;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_1_3_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_3_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_3_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_1_4_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_4_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_4_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_1_4_1/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_4_1;
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_1_4_1;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_5_0_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_5_0_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_5_0_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_6_0_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_6_0_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_6_0_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/client/model_6_0_1/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_6_0_1;
55
package org.netbeans.modules.j2ee.sun.dd.impl.client.model_6_0_1;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/cmp/model_1_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/cmp/model_1_1/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_1;
55
package org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_1;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/cmp/model_1_2/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_2;
55
package org.netbeans.modules.j2ee.sun.dd.impl.cmp.model_1_2;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/common/model_2_1_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
	attrProp=true,
51
	attrProp=true,
52
        java5=true
52
        java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.common.model_2_1_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.common.model_2_1_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/common/model_2_1_1/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
	attrProp=true,
51
	attrProp=true,
52
        java5=true
52
        java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.common.model_2_1_1;
55
package org.netbeans.modules.j2ee.sun.dd.impl.common.model_2_1_1;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/common/model_3_0_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.common.model_3_0_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.common.model_3_0_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_2_0_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_0_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_0_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_2_1_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_1_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_1_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_2_1_1/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_1_1;
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_1_1;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_3_0_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_0_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_0_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_3_0_1/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_0_1;
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_0_1;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_3_1_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_1_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_1_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/ejb/model_3_1_1/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_1_1;
55
package org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_3_1_1;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/serverresources/model_1_5/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.serverresources.model_1_5;
55
package org.netbeans.modules.j2ee.sun.dd.impl.serverresources.model_1_5;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_3_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_3_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_3_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_4_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_4_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_4_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_4_1/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_4_1;
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_4_1;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_2_5_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_5_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_5_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_3_0_0/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_3_0_0;
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_3_0_0;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.sun.dd/src/org/netbeans/modules/j2ee/sun/dd/impl/web/model_3_0_1/package-info.java (-1 / +1 lines)
Lines 51-57 Link Here
51
    attrProp=true,
51
    attrProp=true,
52
    java5=true
52
    java5=true
53
)
53
)
54
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
54
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_3_0_1;
55
package org.netbeans.modules.j2ee.sun.dd.impl.web.model_3_0_1;
56
56
57
import org.netbeans.modules.schema2beans.Schema2Beans;
57
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.weblogic9/nbproject/project.xml (-1 / +1 lines)
Lines 61-67 Link Here
61
                    <compile-dependency/>
61
                    <compile-dependency/>
62
                    <run-dependency>
62
                    <run-dependency>
63
                        <release-version>1</release-version>
63
                        <release-version>1</release-version>
64
                        <specification-version>1.4</specification-version>
64
                        <specification-version>1.19</specification-version>
65
                    </run-dependency>
65
                    </run-dependency>
66
                </dependency>
66
                </dependency>
67
                <dependency>
67
                <dependency>
(-)a/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/dd/ear1030/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    mddFile="../../resources/weblogic-application_10_3_0.mdd",
52
    mddFile="../../resources/weblogic-application_10_3_0.mdd",
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.weblogic9.dd.ear1030;
56
package org.netbeans.modules.j2ee.weblogic9.dd.ear1030;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/dd/ear1031/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    mddFile="../../resources/weblogic-application_10_3_1.mdd",
52
    mddFile="../../resources/weblogic-application_10_3_1.mdd",
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.weblogic9.dd.ear1031;
56
package org.netbeans.modules.j2ee.weblogic9.dd.ear1031;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/dd/ear90/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    mddFile="../../resources/weblogic-application_9_0.mdd",
52
    mddFile="../../resources/weblogic-application_9_0.mdd",
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.weblogic9.dd.ear90;
56
package org.netbeans.modules.j2ee.weblogic9.dd.ear90;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/dd/ejb1030/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    mddFile="../../resources/weblogic-ejb-jar_10_3_0.mdd",
52
    mddFile="../../resources/weblogic-ejb-jar_10_3_0.mdd",
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.weblogic9.dd.ejb1030;
56
package org.netbeans.modules.j2ee.weblogic9.dd.ejb1030;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/dd/ejb1031/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    mddFile="../../resources/weblogic-ejb-jar_10_3_1.mdd",
52
    mddFile="../../resources/weblogic-ejb-jar_10_3_1.mdd",
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.weblogic9.dd.ejb1031;
56
package org.netbeans.modules.j2ee.weblogic9.dd.ejb1031;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/dd/ejb90/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    mddFile="../../resources/weblogic-ejb-jar_9_0.mdd",
52
    mddFile="../../resources/weblogic-ejb-jar_9_0.mdd",
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.weblogic9.dd.ejb90;
56
package org.netbeans.modules.j2ee.weblogic9.dd.ejb90;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/dd/jms1031/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    mddFile="../../resources/weblogic-jms_10_3_1.mdd",
52
    mddFile="../../resources/weblogic-jms_10_3_1.mdd",
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.weblogic9.dd.jms1031;
56
package org.netbeans.modules.j2ee.weblogic9.dd.jms1031;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/dd/web1030/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    mddFile="../../resources/weblogic-web-app_10_3_0.mdd",
52
    mddFile="../../resources/weblogic-web-app_10_3_0.mdd",
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.weblogic9.dd.web1030;
56
package org.netbeans.modules.j2ee.weblogic9.dd.web1030;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/dd/web1031/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    mddFile="../../resources/weblogic-web-app_10_3_1.mdd",
52
    mddFile="../../resources/weblogic-web-app_10_3_1.mdd",
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.weblogic9.dd.web1031;
56
package org.netbeans.modules.j2ee.weblogic9.dd.web1031;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/dd/web90/package-info.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    mddFile="../../resources/weblogic-web-app_9_0.mdd",
52
    mddFile="../../resources/weblogic-web-app_9_0.mdd",
53
    java5=true
53
    java5=true
54
)
54
)
55
@org.netbeans.api.annotations.common.SuppressWarnings("NM_SAME_SIMPLE_NAME_AS_INTERFACE") // justification="Generated implementation classes"
55
@org.netbeans.api.annotations.common.SuppressWarnings(value="NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification="Generated implementation classes")
56
package org.netbeans.modules.j2ee.weblogic9.dd.web90;
56
package org.netbeans.modules.j2ee.weblogic9.dd.web90;
57
57
58
import org.netbeans.modules.schema2beans.Schema2Beans;
58
import org.netbeans.modules.schema2beans.Schema2Beans;
(-)a/j2eeserver/nbproject/project.xml (-1 / +1 lines)
Lines 64-70 Link Here
64
                    <compile-dependency/>
64
                    <compile-dependency/>
65
                    <run-dependency>
65
                    <run-dependency>
66
                        <release-version>1</release-version>
66
                        <release-version>1</release-version>
67
                        <specification-version>1.1</specification-version>
67
                        <specification-version>1.19</specification-version>
68
                    </run-dependency>
68
                    </run-dependency>
69
                </dependency>
69
                </dependency>
70
                <dependency>
70
                <dependency>
(-)a/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ServerFileDistributor.java (-1 / +1 lines)
Lines 362-368 Link Here
362
        }
362
        }
363
    }
363
    }
364
364
365
    @org.netbeans.api.annotations.common.SuppressWarnings("REC_CATCH_EXCEPTION") // justification="We rethrow with localized message"
365
    @org.netbeans.api.annotations.common.SuppressWarnings(value="REC_CATCH_EXCEPTION", justification="We rethrow with localized message")
366
    private AppChanges _distributeOnSave(File destDir, TargetModuleID target, Iterable<Artifact> artifacts) throws IOException {
366
    private AppChanges _distributeOnSave(File destDir, TargetModuleID target, Iterable<Artifact> artifacts) throws IOException {
367
        AppChanges mc = createModuleChangeDescriptor(target);
367
        AppChanges mc = createModuleChangeDescriptor(target);
368
368
(-)a/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/query/J2eePlatformJavadocForBinaryQuery.java (-2 / +2 lines)
Lines 75-81 Link Here
75
 * Implementation of Javadoc query for the library.
75
 * Implementation of Javadoc query for the library.
76
 * @since 1.5
76
 * @since 1.5
77
 */
77
 */
78
@org.netbeans.api.annotations.common.SuppressWarnings("DMI_COLLECTION_OF_URLS") // justification="File URLs only"
78
@org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_COLLECTION_OF_URLS", justification="File URLs only")
79
@org.openide.util.lookup.ServiceProvider(service=org.netbeans.spi.java.queries.JavadocForBinaryQueryImplementation.class)
79
@org.openide.util.lookup.ServiceProvider(service=org.netbeans.spi.java.queries.JavadocForBinaryQueryImplementation.class)
80
public class J2eePlatformJavadocForBinaryQuery implements JavadocForBinaryQueryImplementation {
80
public class J2eePlatformJavadocForBinaryQuery implements JavadocForBinaryQueryImplementation {
81
    
81
    
Lines 87-93 Link Here
87
    public J2eePlatformJavadocForBinaryQuery() {
87
    public J2eePlatformJavadocForBinaryQuery() {
88
    }
88
    }
89
89
90
    @org.netbeans.api.annotations.common.SuppressWarnings("DMI_BLOCKING_METHODS_ON_URL") // justification="File URLs only"
90
    @org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_BLOCKING_METHODS_ON_URL", justification="File URLs only")
91
    public JavadocForBinaryQuery.Result findJavadoc(final URL b) {
91
    public JavadocForBinaryQuery.Result findJavadoc(final URL b) {
92
        class R implements JavadocForBinaryQuery.Result, PropertyChangeListener {
92
        class R implements JavadocForBinaryQuery.Result, PropertyChangeListener {
93
93
(-)a/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/query/J2eePlatformSourceForBinaryQuery.java (-2 / +2 lines)
Lines 75-81 Link Here
75
 * Finds the locations of sources for various libraries.
75
 * Finds the locations of sources for various libraries.
76
 * @since 1.5
76
 * @since 1.5
77
 */
77
 */
78
@org.netbeans.api.annotations.common.SuppressWarnings("DMI_COLLECTION_OF_URLS") // justification="File URLs only"
78
@org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_COLLECTION_OF_URLS", justification="File URLs only")
79
@org.openide.util.lookup.ServiceProvider(service=org.netbeans.spi.java.queries.SourceForBinaryQueryImplementation.class)
79
@org.openide.util.lookup.ServiceProvider(service=org.netbeans.spi.java.queries.SourceForBinaryQueryImplementation.class)
80
public class J2eePlatformSourceForBinaryQuery implements SourceForBinaryQueryImplementation2 {
80
public class J2eePlatformSourceForBinaryQuery implements SourceForBinaryQueryImplementation2 {
81
81
Lines 85-91 Link Here
85
    /** Default constructor for lookup. */
85
    /** Default constructor for lookup. */
86
    public J2eePlatformSourceForBinaryQuery() {}
86
    public J2eePlatformSourceForBinaryQuery() {}
87
87
88
    @org.netbeans.api.annotations.common.SuppressWarnings("DMI_BLOCKING_METHODS_ON_URL") // justification="File URLs only"
88
    @org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_BLOCKING_METHODS_ON_URL", justification="File URLs only")
89
    public SourceForBinaryQueryImplementation2.Result findSourceRoots2 (URL binaryRoot) {
89
    public SourceForBinaryQueryImplementation2.Result findSourceRoots2 (URL binaryRoot) {
90
        SourceForBinaryQueryImplementation2.Result res = this.cache.get (binaryRoot);
90
        SourceForBinaryQueryImplementation2.Result res = this.cache.get (binaryRoot);
91
        if (res != null) {
91
        if (res != null) {
(-)a/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/sharability/JavadocForBinaryQueryImpl.java (-2 / +2 lines)
Lines 67-73 Link Here
67
/**
67
/**
68
 * Implementation of Javadoc query for the library.
68
 * Implementation of Javadoc query for the library.
69
 */
69
 */
70
@org.netbeans.api.annotations.common.SuppressWarnings("DMI_COLLECTION_OF_URLS") // justification="File URLs only"
70
@org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_COLLECTION_OF_URLS", justification="File URLs only")
71
@org.openide.util.lookup.ServiceProvider(service=org.netbeans.spi.java.queries.JavadocForBinaryQueryImplementation.class)
71
@org.openide.util.lookup.ServiceProvider(service=org.netbeans.spi.java.queries.JavadocForBinaryQueryImplementation.class)
72
public class JavadocForBinaryQueryImpl implements JavadocForBinaryQueryImplementation {
72
public class JavadocForBinaryQueryImpl implements JavadocForBinaryQueryImplementation {
73
73
Lines 83-89 Link Here
83
    public JavadocForBinaryQueryImpl() {
83
    public JavadocForBinaryQueryImpl() {
84
    }
84
    }
85
85
86
    @org.netbeans.api.annotations.common.SuppressWarnings("DMI_BLOCKING_METHODS_ON_URL") // justification="File URLs only"
86
    @org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_BLOCKING_METHODS_ON_URL", justification="File URLs only")
87
    public JavadocForBinaryQuery.Result findJavadoc(final URL b) {
87
    public JavadocForBinaryQuery.Result findJavadoc(final URL b) {
88
        class R implements JavadocForBinaryQuery.Result, PropertyChangeListener {
88
        class R implements JavadocForBinaryQuery.Result, PropertyChangeListener {
89
89
(-)a/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/sharability/SourceForBinaryQueryImpl.java (-2 / +2 lines)
Lines 68-74 Link Here
68
 * Finds the locations of sources for various libraries.
68
 * Finds the locations of sources for various libraries.
69
 * @author Tomas Zezula
69
 * @author Tomas Zezula
70
 */
70
 */
71
@org.netbeans.api.annotations.common.SuppressWarnings("DMI_COLLECTION_OF_URLS") // justification="File URLs only"
71
@org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_COLLECTION_OF_URLS", justification="File URLs only")
72
@org.openide.util.lookup.ServiceProvider(service=org.netbeans.spi.java.queries.SourceForBinaryQueryImplementation.class)
72
@org.openide.util.lookup.ServiceProvider(service=org.netbeans.spi.java.queries.SourceForBinaryQueryImplementation.class)
73
public class SourceForBinaryQueryImpl implements SourceForBinaryQueryImplementation2 {
73
public class SourceForBinaryQueryImpl implements SourceForBinaryQueryImplementation2 {
74
74
Lines 83-89 Link Here
83
    /** Default constructor for lookup. */
83
    /** Default constructor for lookup. */
84
    public SourceForBinaryQueryImpl() {}
84
    public SourceForBinaryQueryImpl() {}
85
85
86
    @org.netbeans.api.annotations.common.SuppressWarnings("DMI_BLOCKING_METHODS_ON_URL") // justification="File URLs only"
86
    @org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_BLOCKING_METHODS_ON_URL", justification="File URLs only")
87
    public SourceForBinaryQueryImplementation2.Result findSourceRoots2(URL binaryRoot) {
87
    public SourceForBinaryQueryImplementation2.Result findSourceRoots2(URL binaryRoot) {
88
        SourceForBinaryQueryImplementation2.Result res = cache.get(binaryRoot);
88
        SourceForBinaryQueryImplementation2.Result res = cache.get(binaryRoot);
89
        if (res != null) {
89
        if (res != null) {
(-)a/java.source/nbproject/project.xml (-1 / +1 lines)
Lines 55-61 Link Here
55
                    <compile-dependency/>
55
                    <compile-dependency/>
56
                    <run-dependency>
56
                    <run-dependency>
57
                        <release-version>1</release-version>
57
                        <release-version>1</release-version>
58
                        <specification-version>1.0</specification-version>
58
                        <specification-version>1.19</specification-version>
59
                    </run-dependency>
59
                    </run-dependency>
60
                </dependency>
60
                </dependency>
61
                <dependency>
61
                <dependency>
(-)a/java.source/src/org/netbeans/api/java/source/ClassIndex.java (-5 / +5 lines)
Lines 110-124 Link Here
110
110
111
    //INV: Never null
111
    //INV: Never null
112
    //@GuardedBy (this)
112
    //@GuardedBy (this)
113
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}/*,justification="URLs have never host part"*/)    //NOI18N
113
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}, justification="URLs have never host part")    //NOI18N
114
    private final Set<URL> oldSources;
114
    private final Set<URL> oldSources;
115
    //INV: Never null
115
    //INV: Never null
116
    //@GuardedBy (this)
116
    //@GuardedBy (this)
117
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}/*,justification="URLs have never host part"*/)    //NOI18N
117
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}, justification="URLs have never host part")    //NOI18N
118
    private final Set<URL> oldBoot;    
118
    private final Set<URL> oldBoot;    
119
    //INV: Never null
119
    //INV: Never null
120
    //@GuardedBy (this)
120
    //@GuardedBy (this)
121
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}/*,justification="URLs have never host part"*/)    //NOI18N
121
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"},justification="URLs have never host part")    //NOI18N
122
    private final Set<URL> oldCompile;
122
    private final Set<URL> oldCompile;
123
    //INV: Never null
123
    //INV: Never null
124
    //@GuardedBy (this)
124
    //@GuardedBy (this)
Lines 796-802 Link Here
796
            }
796
            }
797
        }
797
        }
798
798
799
        @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}/*,justification="URLs have never host part"*/)    //NOI18N
799
        @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}, justification="URLs have never host part")    //NOI18N
800
        private boolean containsRoot (final ClassPath cp, final Set<? extends URL> roots, final List<? super URL> affectedRoots, final boolean translate) {
800
        private boolean containsRoot (final ClassPath cp, final Set<? extends URL> roots, final List<? super URL> affectedRoots, final boolean translate) {
801
            final List<ClassPath.Entry> entries = cp.entries();
801
            final List<ClassPath.Entry> entries = cp.entries();
802
            final PathRegistry preg = PathRegistry.getDefault();
802
            final PathRegistry preg = PathRegistry.getDefault();
Lines 866-872 Link Here
866
            return result;
866
            return result;
867
        }
867
        }
868
868
869
        @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}/*,justification="URLs have never host part"*/)    //NOI18N
869
        @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}, justification="URLs have never host part")    //NOI18N
870
        public void propertyChange(PropertyChangeEvent evt) {
870
        public void propertyChange(PropertyChangeEvent evt) {
871
            if (ClassPath.PROP_ENTRIES.equals (evt.getPropertyName())) {
871
            if (ClassPath.PROP_ENTRIES.equals (evt.getPropertyName())) {
872
                final List<URL> newRoots = new LinkedList<URL>();
872
                final List<URL> newRoots = new LinkedList<URL>();
(-)a/java.source/src/org/netbeans/api/java/source/SourceUtils.java (-3 / +3 lines)
Lines 672-678 Link Here
672
     * incoming root, never returns null.
672
     * incoming root, never returns null.
673
     * @since 0.10
673
     * @since 0.10
674
     */
674
     */
675
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}/*,justification="URLs have never host part"*/)    //NOI18N
675
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}, justification="URLs have never host part")    //NOI18N
676
    public static Set<URL> getDependentRoots (final URL root) {
676
    public static Set<URL> getDependentRoots (final URL root) {
677
        final Map<URL, List<URL>> sourceDeps = IndexingController.getDefault().getRootDependencies();
677
        final Map<URL, List<URL>> sourceDeps = IndexingController.getDefault().getRootDependencies();
678
        final Map<URL, List<URL>> binaryDeps = IndexingController.getDefault().getBinaryRootDependencies();
678
        final Map<URL, List<URL>> binaryDeps = IndexingController.getDefault().getBinaryRootDependencies();
Lines 691-704 Link Here
691
     * root, never returns null.
691
     * root, never returns null.
692
     * @since 0.110
692
     * @since 0.110
693
     */
693
     */
694
    @org.netbeans.api.annotations.common.SuppressWarnings(value = {"DMI_COLLECTION_OF_URLS"}/*,justification="URLs have never host part"*/)    //NOI18N
694
    @org.netbeans.api.annotations.common.SuppressWarnings(value = {"DMI_COLLECTION_OF_URLS"}, justification="URLs have never host part")    //NOI18N
695
    public static Set<URL> getDependentRoots(final URL root, boolean filterNonOpenedProjects) {
695
    public static Set<URL> getDependentRoots(final URL root, boolean filterNonOpenedProjects) {
696
        final Map<URL, List<URL>> sourceDeps = IndexingController.getDefault().getRootDependencies();
696
        final Map<URL, List<URL>> sourceDeps = IndexingController.getDefault().getRootDependencies();
697
        final Map<URL, List<URL>> binaryDeps = IndexingController.getDefault().getBinaryRootDependencies();
697
        final Map<URL, List<URL>> binaryDeps = IndexingController.getDefault().getBinaryRootDependencies();
698
        return getDependentRootsImpl(root, sourceDeps, binaryDeps, filterNonOpenedProjects);
698
        return getDependentRootsImpl(root, sourceDeps, binaryDeps, filterNonOpenedProjects);
699
    }
699
    }
700
700
701
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}/*,justification="URLs have never host part"*/)    //NOI18N
701
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}, justification="URLs have never host part")    //NOI18N
702
    static Set<URL> getDependentRootsImpl (final URL root, final Map<URL, List<URL>> sourceDeps, Map<URL, List<URL>> binaryDeps, boolean filterNonOpenedProjects) {
702
    static Set<URL> getDependentRootsImpl (final URL root, final Map<URL, List<URL>> sourceDeps, Map<URL, List<URL>> binaryDeps, boolean filterNonOpenedProjects) {
703
        Set<URL> urls;
703
        Set<URL> urls;
704
704
(-)a/java.source/src/org/netbeans/modules/java/source/JavadocHelper.java (-1 / +1 lines)
Lines 253-259 Link Here
253
        return getJavadoc(element, null);
253
        return getJavadoc(element, null);
254
    }
254
    }
255
255
256
    @org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_COLLECTION_OF_URLS"/*,justification="URLs have never host part"*/)
256
    @org.netbeans.api.annotations.common.SuppressWarnings(value="DMI_COLLECTION_OF_URLS", justification="URLs have never host part")
257
    private static TextStream doGetJavadoc(final Element element, final boolean allowRemoteJavadoc, final Callable<Boolean> cancel) {
257
    private static TextStream doGetJavadoc(final Element element, final boolean allowRemoteJavadoc, final Callable<Boolean> cancel) {
258
        if (element == null) {
258
        if (element == null) {
259
            throw new IllegalArgumentException("Cannot pass null as an argument of the SourceUtils.getJavadoc"); // NOI18N
259
            throw new IllegalArgumentException("Cannot pass null as an argument of the SourceUtils.getJavadoc"); // NOI18N
(-)a/java.source/src/org/netbeans/modules/java/source/classpath/SourcePathCheck.java (-2 / +2 lines)
Lines 80-86 Link Here
80
    }
80
    }
81
81
82
    @Override
82
    @Override
83
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}/*,justification="URLs have never host part"*/)    //NOI18N
83
    @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}, justification="URLs have never host part")    //NOI18N
84
    public void run(final Result result, final SchedulerEvent event) {
84
    public void run(final Result result, final SchedulerEvent event) {
85
        final CompilationInfo info = CompilationInfo.get(result);
85
        final CompilationInfo info = CompilationInfo.get(result);
86
        final ClasspathInfo cpInfo = info.getClasspathInfo();
86
        final ClasspathInfo cpInfo = info.getClasspathInfo();
Lines 125-131 Link Here
125
125
126
    public static final class Factory extends TaskFactory {
126
    public static final class Factory extends TaskFactory {
127
127
128
        @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}/*,justification="URLs have never host part"*/)    //NOI18N
128
        @org.netbeans.api.annotations.common.SuppressWarnings(value={"DMI_COLLECTION_OF_URLS"}, justification="URLs have never host part")    //NOI18N
129
        private final Set<URL> firedFor = new HashSet<URL>();
129
        private final Set<URL> firedFor = new HashSet<URL>();
130
130
131
        @Override
131
        @Override
(-)a/parsing.api/nbproject/project.xml (-1 / +1 lines)
Lines 11-17 Link Here
11
                    <compile-dependency/>
11
                    <compile-dependency/>
12
                    <run-dependency>
12
                    <run-dependency>
13
                        <release-version>1</release-version>
13
                        <release-version>1</release-version>
14
                        <specification-version>1.4</specification-version>
14
                        <specification-version>1.19</specification-version>
15
                    </run-dependency>
15
                    </run-dependency>
16
                </dependency>
16
                </dependency>
17
                <dependency>
17
                <dependency>
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/CacheFolder.java (-2 / +2 lines)
Lines 91-98 Link Here
91
91
92
    //@NotThreadSafe
92
    //@NotThreadSafe
93
    @org.netbeans.api.annotations.common.SuppressWarnings(
93
    @org.netbeans.api.annotations.common.SuppressWarnings(
94
        value="LI_LAZY_INIT_UPDATE_STATIC"
94
        value="LI_LAZY_INIT_UPDATE_STATIC",
95
        /*,justification="Caller already holds a monitor"*/)
95
        justification="Caller already holds a monitor")
96
    private static void loadSegments(FileObject folder) throws IOException {
96
    private static void loadSegments(FileObject folder) throws IOException {
97
        assert Thread.holdsLock(CacheFolder.class);
97
        assert Thread.holdsLock(CacheFolder.class);
98
        if (segments == null) {
98
        if (segments == null) {
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/DeletedIndexable.java (-4 / +4 lines)
Lines 104-111 Link Here
104
104
105
    @Override
105
    @Override
106
    @org.netbeans.api.annotations.common.SuppressWarnings(
106
    @org.netbeans.api.annotations.common.SuppressWarnings(
107
    value="DMI_BLOCKING_METHODS_ON_URL"
107
    value="DMI_BLOCKING_METHODS_ON_URL",
108
    /*,justification="URLs have never host part"*/)
108
    justification="URLs have never host part")
109
    public boolean equals(Object obj) {
109
    public boolean equals(Object obj) {
110
        if (obj == null) {
110
        if (obj == null) {
111
            return false;
111
            return false;
Lines 125-132 Link Here
125
125
126
    @Override
126
    @Override
127
    @org.netbeans.api.annotations.common.SuppressWarnings(
127
    @org.netbeans.api.annotations.common.SuppressWarnings(
128
    value="DMI_BLOCKING_METHODS_ON_URL"
128
    value="DMI_BLOCKING_METHODS_ON_URL",
129
    /*,justification="URLs have never host part"*/)
129
    justification="URLs have never host part")
130
    public int hashCode() {
130
    public int hashCode() {
131
        int hash = 7;
131
        int hash = 7;
132
        hash = 83 * hash + (this.root != null ? this.root.hashCode() : 0);
132
        hash = 83 * hash + (this.root != null ? this.root.hashCode() : 0);
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/FileEventLog.java (-6 / +6 lines)
Lines 67-74 Link Here
67
    };
67
    };
68
68
69
    @org.netbeans.api.annotations.common.SuppressWarnings(
69
    @org.netbeans.api.annotations.common.SuppressWarnings(
70
        value="DMI_COLLECTION_OF_URLS"
70
        value="DMI_COLLECTION_OF_URLS",
71
        /*,justification="URLs have never host part"*/)
71
        justification="URLs have never host part")
72
    private final ThreadLocal<Map<URL,Map<String,Pair<FileEventLog.FileOp,Work>>>> changes;
72
    private final ThreadLocal<Map<URL,Map<String,Pair<FileEventLog.FileOp,Work>>>> changes;
73
73
74
    public FileEventLog() {
74
    public FileEventLog() {
Lines 76-83 Link Here
76
    }
76
    }
77
77
78
    @org.netbeans.api.annotations.common.SuppressWarnings(
78
    @org.netbeans.api.annotations.common.SuppressWarnings(
79
        value="DMI_COLLECTION_OF_URLS"
79
        value="DMI_COLLECTION_OF_URLS",
80
        /*,justification="URLs have never host part"*/)
80
        justification="URLs have never host part")
81
    public void record (final FileOp operation, final URL root, String relativePath, FileEvent event, final Work work) {
81
    public void record (final FileOp operation, final URL root, String relativePath, FileEvent event, final Work work) {
82
        assert operation != null;
82
        assert operation != null;
83
        assert root != null;
83
        assert root != null;
Lines 104-111 Link Here
104
    }
104
    }
105
105
106
    @org.netbeans.api.annotations.common.SuppressWarnings(
106
    @org.netbeans.api.annotations.common.SuppressWarnings(
107
        value="DMI_COLLECTION_OF_URLS"
107
        value="DMI_COLLECTION_OF_URLS",
108
        /*,justification="URLs have never host part"*/)
108
        justification="URLs have never host part")
109
    private Map<URL,Map<String,Pair<FileEventLog.FileOp,Work>>> getChanges(final boolean create) {
109
    private Map<URL,Map<String,Pair<FileEventLog.FileOp,Work>>> getChanges(final boolean create) {
110
        Map<URL,Map<String,Pair<FileEventLog.FileOp,Work>>> res = changes.get();
110
        Map<URL,Map<String,Pair<FileEventLog.FileOp,Work>>> res = changes.get();
111
        if (res == null && create) {
111
        if (res == null && create) {
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/LongHashMap.java (-2 / +2 lines)
Lines 180-187 Link Here
180
     * the LongHashMap fail-fast.  (See ConcurrentModificationException).
180
     * the LongHashMap fail-fast.  (See ConcurrentModificationException).
181
     */
181
     */
182
    @org.netbeans.api.annotations.common.SuppressWarnings(
182
    @org.netbeans.api.annotations.common.SuppressWarnings(
183
        value={"VO_VOLATILE_INCREMENT"}
183
        value={"VO_VOLATILE_INCREMENT"},
184
        /*,justification="Only change is required, no need to have correct value"*/)
184
        justification="Only change is required, no need to have correct value")
185
    transient volatile int modCount;
185
    transient volatile int modCount;
186
186
187
    /**
187
    /**
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/PathRegistry.java (-50 / +50 lines)
Lines 102-117 Link Here
102
102
103
    private Set<ClassPath> activeCps;
103
    private Set<ClassPath> activeCps;
104
    @org.netbeans.api.annotations.common.SuppressWarnings(
104
    @org.netbeans.api.annotations.common.SuppressWarnings(
105
        value="DMI_COLLECTION_OF_URLS"
105
        value="DMI_COLLECTION_OF_URLS",
106
        /*,justification="URLs have never host part"*/)
106
        justification="URLs have never host part")
107
    private Map<URL, SourceForBinaryQuery.Result2> sourceResults;
107
    private Map<URL, SourceForBinaryQuery.Result2> sourceResults;
108
    @org.netbeans.api.annotations.common.SuppressWarnings(
108
    @org.netbeans.api.annotations.common.SuppressWarnings(
109
        value="DMI_COLLECTION_OF_URLS"
109
        value="DMI_COLLECTION_OF_URLS",
110
        /*,justification="URLs have never host part"*/)
110
        justification="URLs have never host part")
111
    private Map<URL, URL[]> translatedRoots;
111
    private Map<URL, URL[]> translatedRoots;
112
    @org.netbeans.api.annotations.common.SuppressWarnings(
112
    @org.netbeans.api.annotations.common.SuppressWarnings(
113
        value="DMI_COLLECTION_OF_URLS"
113
        value="DMI_COLLECTION_OF_URLS",
114
        /*,justification="URLs have never host part"*/)
114
        justification="URLs have never host part")
115
    private Map<URL, WeakValue> unknownRoots;
115
    private Map<URL, WeakValue> unknownRoots;
116
    private long timeStamp;             //Lamport event ordering
116
    private long timeStamp;             //Lamport event ordering
117
    private volatile Runnable debugCallBack;
117
    private volatile Runnable debugCallBack;
Lines 120-131 Link Here
120
    private Collection<URL> binaryLibraryPath;
120
    private Collection<URL> binaryLibraryPath;
121
    private Collection<URL> unknownSourcePath;
121
    private Collection<URL> unknownSourcePath;
122
    @org.netbeans.api.annotations.common.SuppressWarnings(
122
    @org.netbeans.api.annotations.common.SuppressWarnings(
123
        value="DMI_COLLECTION_OF_URLS"
123
        value="DMI_COLLECTION_OF_URLS",
124
        /*,justification="URLs have never host part"*/)
124
        justification="URLs have never host part")
125
    private Map<URL, PathIds> rootPathIds;
125
    private Map<URL, PathIds> rootPathIds;
126
    @org.netbeans.api.annotations.common.SuppressWarnings(
126
    @org.netbeans.api.annotations.common.SuppressWarnings(
127
        value="DMI_COLLECTION_OF_URLS"
127
        value="DMI_COLLECTION_OF_URLS",
128
        /*,justification="URLs have never host part"*/)
128
        justification="URLs have never host part")
129
    private Map<String, Set<URL>> pathIdToRoots;
129
    private Map<String, Set<URL>> pathIdToRoots;
130
130
131
    private final Listener listener;
131
    private final Listener listener;
Lines 176-183 Link Here
176
    }
176
    }
177
177
178
    @org.netbeans.api.annotations.common.SuppressWarnings(
178
    @org.netbeans.api.annotations.common.SuppressWarnings(
179
        value="DMI_COLLECTION_OF_URLS"
179
        value="DMI_COLLECTION_OF_URLS",
180
        /*,justification="URLs have never host part"*/)
180
        justification="URLs have never host part")
181
    public URL[] sourceForBinaryQuery (final URL binaryRoot, final ClassPath definingClassPath, final boolean fire) {
181
    public URL[] sourceForBinaryQuery (final URL binaryRoot, final ClassPath definingClassPath, final boolean fire) {
182
        assert noHostPart(binaryRoot) : binaryRoot;
182
        assert noHostPart(binaryRoot) : binaryRoot;
183
        URL[] result = this.translatedRoots.get(binaryRoot);
183
        URL[] result = this.translatedRoots.get(binaryRoot);
Lines 428-435 Link Here
428
    }
428
    }
429
429
430
    @org.netbeans.api.annotations.common.SuppressWarnings(
430
    @org.netbeans.api.annotations.common.SuppressWarnings(
431
        value="DMI_COLLECTION_OF_URLS"
431
        value="DMI_COLLECTION_OF_URLS",
432
        /*,justification="URLs have never host part"*/)
432
        justification="URLs have never host part")
433
    public Set<String> getSourceIdsFor(URL root) {
433
    public Set<String> getSourceIdsFor(URL root) {
434
        assert noHostPart(root) : root;
434
        assert noHostPart(root) : root;
435
        PathIds pathIds = getRootPathIds().get(root);
435
        PathIds pathIds = getRootPathIds().get(root);
Lines 437-444 Link Here
437
    }
437
    }
438
438
439
    @org.netbeans.api.annotations.common.SuppressWarnings(
439
    @org.netbeans.api.annotations.common.SuppressWarnings(
440
        value="DMI_COLLECTION_OF_URLS"
440
        value="DMI_COLLECTION_OF_URLS",
441
        /*,justification="URLs have never host part"*/)
441
        justification="URLs have never host part")
442
    public Set<String> getLibraryIdsFor(URL root) {
442
    public Set<String> getLibraryIdsFor(URL root) {
443
        assert noHostPart(root) : root;
443
        assert noHostPart(root) : root;
444
        PathIds pathIds = getRootPathIds().get(root);
444
        PathIds pathIds = getRootPathIds().get(root);
Lines 446-453 Link Here
446
    }
446
    }
447
447
448
    @org.netbeans.api.annotations.common.SuppressWarnings(
448
    @org.netbeans.api.annotations.common.SuppressWarnings(
449
        value="DMI_COLLECTION_OF_URLS"
449
        value="DMI_COLLECTION_OF_URLS",
450
        /*,justification="URLs have never host part"*/)
450
        justification="URLs have never host part")
451
    public Set<URL> getRootsMarkedAs(String... pathIds) {
451
    public Set<URL> getRootsMarkedAs(String... pathIds) {
452
        final Map<String, Set<URL>> rootsByPathIds = getPathIdToRoots();
452
        final Map<String, Set<URL>> rootsByPathIds = getPathIdToRoots();
453
        final Set<URL> roots = new HashSet<URL>();
453
        final Set<URL> roots = new HashSet<URL>();
Lines 461-468 Link Here
461
    }
461
    }
462
462
463
    @org.netbeans.api.annotations.common.SuppressWarnings(
463
    @org.netbeans.api.annotations.common.SuppressWarnings(
464
        value="DMI_COLLECTION_OF_URLS"
464
        value="DMI_COLLECTION_OF_URLS",
465
        /*,justification="URLs have never host part"*/)
465
        justification="URLs have never host part")
466
    public Set<String> getMimeTypesFor(final URL root) {
466
    public Set<String> getMimeTypesFor(final URL root) {
467
        assert noHostPart(root) : root;
467
        assert noHostPart(root) : root;
468
        PathIds pathIds = getRootPathIds().get(root);
468
        PathIds pathIds = getRootPathIds().get(root);
Lines 513-520 Link Here
513
    }
513
    }
514
514
515
    @org.netbeans.api.annotations.common.SuppressWarnings(
515
    @org.netbeans.api.annotations.common.SuppressWarnings(
516
        value="DMI_COLLECTION_OF_URLS"
516
        value="DMI_COLLECTION_OF_URLS",
517
        /*,justification="URLs have never host part"*/)
517
        justification="URLs have never host part")
518
    private Map<URL, PathIds> getRootPathIds () {
518
    private Map<URL, PathIds> getRootPathIds () {
519
        Request request;
519
        Request request;
520
        synchronized (this) {
520
        synchronized (this) {
Lines 560-567 Link Here
560
    }
560
    }
561
561
562
    @org.netbeans.api.annotations.common.SuppressWarnings(
562
    @org.netbeans.api.annotations.common.SuppressWarnings(
563
        value="DMI_COLLECTION_OF_URLS"
563
        value="DMI_COLLECTION_OF_URLS",
564
        /*,justification="URLs have never host part"*/)
564
        justification="URLs have never host part")
565
    private Map<String, Set<URL>> getPathIdToRoots () {
565
    private Map<String, Set<URL>> getPathIdToRoots () {
566
        Request request;
566
        Request request;
567
        synchronized (this) {
567
        synchronized (this) {
Lines 607-614 Link Here
607
    }
607
    }
608
608
609
    @org.netbeans.api.annotations.common.SuppressWarnings(
609
    @org.netbeans.api.annotations.common.SuppressWarnings(
610
        value="DMI_COLLECTION_OF_URLS"
610
        value="DMI_COLLECTION_OF_URLS",
611
        /*,justification="URLs have never host part"*/)
611
        justification="URLs have never host part")
612
    private static Result createResources (final Request request) {
612
    private static Result createResources (final Request request) {
613
        assert request != null;
613
        assert request != null;
614
        final Set<URL> sourceResult = new HashSet<URL> ();
614
        final Set<URL> sourceResult = new HashSet<URL> ();
Lines 710-717 Link Here
710
    }
710
    }
711
711
712
    @org.netbeans.api.annotations.common.SuppressWarnings(
712
    @org.netbeans.api.annotations.common.SuppressWarnings(
713
        value="DMI_COLLECTION_OF_URLS"
713
        value="DMI_COLLECTION_OF_URLS",
714
        /*,justification="URLs have never host part"*/)
714
        justification="URLs have never host part")
715
    private static Collection <? extends URL> getSources (final SourceForBinaryQuery.Result2 sr, final Collection<? super URL> cacheDirs, final Map<URL, WeakValue> unknownRoots) {
715
    private static Collection <? extends URL> getSources (final SourceForBinaryQuery.Result2 sr, final Collection<? super URL> cacheDirs, final Map<URL, WeakValue> unknownRoots) {
716
        assert sr != null;
716
        assert sr != null;
717
        if (sr.preferSources()) {
717
        if (sr.preferSources()) {
Lines 742-749 Link Here
742
    }
742
    }
743
743
744
    @org.netbeans.api.annotations.common.SuppressWarnings(
744
    @org.netbeans.api.annotations.common.SuppressWarnings(
745
        value="DMI_COLLECTION_OF_URLS"
745
        value="DMI_COLLECTION_OF_URLS",
746
        /*,justification="URLs have never host part"*/)
746
        justification="URLs have never host part")
747
    private static void updatePathIds(URL root, TaggedClassPath tcp, Map<URL, PathIds> pathIdsResult, Map<String, Set<URL>> pathIdToRootsResult) {
747
    private static void updatePathIds(URL root, TaggedClassPath tcp, Map<URL, PathIds> pathIdsResult, Map<String, Set<URL>> pathIdToRootsResult) {
748
        PathIds pathIds = pathIdsResult.get(root);
748
        PathIds pathIds = pathIdsResult.get(root);
749
        if (pathIds == null) {
749
        if (pathIds == null) {
Lines 765-772 Link Here
765
    }
765
    }
766
766
767
    @org.netbeans.api.annotations.common.SuppressWarnings(
767
    @org.netbeans.api.annotations.common.SuppressWarnings(
768
        value="DMI_COLLECTION_OF_URLS"
768
        value="DMI_COLLECTION_OF_URLS",
769
        /*,justification="URLs have never host part"*/)
769
        justification="URLs have never host part")
770
    private static void updateTranslatedPathIds(Collection<? extends URL> roots, TaggedClassPath tcp, Map<URL, PathIds> pathIdsResult, Map<String, Set<URL>> pathIdToRootsResult) {
770
    private static void updateTranslatedPathIds(Collection<? extends URL> roots, TaggedClassPath tcp, Map<URL, PathIds> pathIdsResult, Map<String, Set<URL>> pathIdToRootsResult) {
771
        Set<String> sids = new HashSet<String>();
771
        Set<String> sids = new HashSet<String>();
772
        Set<String> mimeTypes = new HashSet<String>();
772
        Set<String> mimeTypes = new HashSet<String>();
Lines 948-966 Link Here
948
        final Collection<TaggedClassPath> binaryLibraryCps;
948
        final Collection<TaggedClassPath> binaryLibraryCps;
949
        final Set<ClassPath> oldCps;
949
        final Set<ClassPath> oldCps;
950
        @org.netbeans.api.annotations.common.SuppressWarnings(
950
        @org.netbeans.api.annotations.common.SuppressWarnings(
951
        value="DMI_COLLECTION_OF_URLS"
951
        value="DMI_COLLECTION_OF_URLS",
952
        /*,justification="URLs have never host part"*/)
952
        justification="URLs have never host part")
953
        final Map <URL, SourceForBinaryQuery.Result2> oldSR;
953
        final Map <URL, SourceForBinaryQuery.Result2> oldSR;
954
        @org.netbeans.api.annotations.common.SuppressWarnings(
954
        @org.netbeans.api.annotations.common.SuppressWarnings(
955
        value="DMI_COLLECTION_OF_URLS"
955
        value="DMI_COLLECTION_OF_URLS",
956
        /*,justification="URLs have never host part"*/)
956
        justification="URLs have never host part")
957
        final Map<URL, WeakValue> unknownRoots;
957
        final Map<URL, WeakValue> unknownRoots;
958
        final PropertyChangeListener propertyListener;
958
        final PropertyChangeListener propertyListener;
959
        final ChangeListener changeListener;
959
        final ChangeListener changeListener;
960
960
961
        @org.netbeans.api.annotations.common.SuppressWarnings(
961
        @org.netbeans.api.annotations.common.SuppressWarnings(
962
        value="DMI_COLLECTION_OF_URLS"
962
        value="DMI_COLLECTION_OF_URLS",
963
        /*,justification="URLs have never host part"*/)
963
        justification="URLs have never host part")
964
        public Request (final long timeStamp,
964
        public Request (final long timeStamp,
965
            final Collection<TaggedClassPath> sourceCps, final Collection<TaggedClassPath> libraryCps, final Collection<TaggedClassPath> binaryLibraryCps,
965
            final Collection<TaggedClassPath> sourceCps, final Collection<TaggedClassPath> libraryCps, final Collection<TaggedClassPath> binaryLibraryCps,
966
            final Set<ClassPath> oldCps, final Map <URL, SourceForBinaryQuery.Result2> oldSR, final Map<URL, WeakValue> unknownRoots,
966
            final Set<ClassPath> oldCps, final Map <URL, SourceForBinaryQuery.Result2> oldSR, final Map<URL, WeakValue> unknownRoots,
Lines 996-1024 Link Here
996
        final Collection<URL> unknownSourcePath;
996
        final Collection<URL> unknownSourcePath;
997
        final Set<ClassPath> newCps;
997
        final Set<ClassPath> newCps;
998
        @org.netbeans.api.annotations.common.SuppressWarnings(
998
        @org.netbeans.api.annotations.common.SuppressWarnings(
999
        value="DMI_COLLECTION_OF_URLS"
999
        value="DMI_COLLECTION_OF_URLS",
1000
        /*,justification="URLs have never host part"*/)
1000
        justification="URLs have never host part")
1001
        final Map<URL, SourceForBinaryQuery.Result2> newSR;
1001
        final Map<URL, SourceForBinaryQuery.Result2> newSR;
1002
        @org.netbeans.api.annotations.common.SuppressWarnings(
1002
        @org.netbeans.api.annotations.common.SuppressWarnings(
1003
        value="DMI_COLLECTION_OF_URLS"
1003
        value="DMI_COLLECTION_OF_URLS",
1004
        /*,justification="URLs have never host part"*/)
1004
        justification="URLs have never host part")
1005
        final Map<URL, URL[]> translatedRoots;
1005
        final Map<URL, URL[]> translatedRoots;
1006
        @org.netbeans.api.annotations.common.SuppressWarnings(
1006
        @org.netbeans.api.annotations.common.SuppressWarnings(
1007
        value="DMI_COLLECTION_OF_URLS"
1007
        value="DMI_COLLECTION_OF_URLS",
1008
        /*,justification="URLs have never host part"*/)
1008
        justification="URLs have never host part")
1009
        final Map<URL, WeakValue> unknownRoots;
1009
        final Map<URL, WeakValue> unknownRoots;
1010
        @org.netbeans.api.annotations.common.SuppressWarnings(
1010
        @org.netbeans.api.annotations.common.SuppressWarnings(
1011
        value="DMI_COLLECTION_OF_URLS"
1011
        value="DMI_COLLECTION_OF_URLS",
1012
        /*,justification="URLs have never host part"*/)
1012
        justification="URLs have never host part")
1013
        final Map<URL, PathIds> rootPathIds;
1013
        final Map<URL, PathIds> rootPathIds;
1014
        @org.netbeans.api.annotations.common.SuppressWarnings(
1014
        @org.netbeans.api.annotations.common.SuppressWarnings(
1015
        value="DMI_COLLECTION_OF_URLS"
1015
        value="DMI_COLLECTION_OF_URLS",
1016
        /*,justification="URLs have never host part"*/)
1016
        justification="URLs have never host part")
1017
        final Map<String, Set<URL>> pathIdToRoots;
1017
        final Map<String, Set<URL>> pathIdToRoots;
1018
1018
1019
        @org.netbeans.api.annotations.common.SuppressWarnings(
1019
        @org.netbeans.api.annotations.common.SuppressWarnings(
1020
        value="DMI_COLLECTION_OF_URLS"
1020
        value="DMI_COLLECTION_OF_URLS",
1021
        /*,justification="URLs have never host part"*/)
1021
        justification="URLs have never host part")
1022
        public Result (final long timeStamp,
1022
        public Result (final long timeStamp,
1023
            final Collection<URL> sourcePath,
1023
            final Collection<URL> sourcePath,
1024
            final Collection<URL> libraryPath,
1024
            final Collection<URL> libraryPath,
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/ProxyBinaryIndexerFactory.java (-8 / +8 lines)
Lines 75-82 Link Here
75
    private final String indexerName;
75
    private final String indexerName;
76
    private final int indexerVersion;
76
    private final int indexerVersion;
77
    @org.netbeans.api.annotations.common.SuppressWarnings(
77
    @org.netbeans.api.annotations.common.SuppressWarnings(
78
            value="DMI_COLLECTION_OF_URLS"
78
            value="DMI_COLLECTION_OF_URLS",
79
            /*,justification="URLs have never host part"*/)    //NOI18N
79
            justification="URLs have never host part")    //NOI18N
80
    private final Set<URL> activeRoots;
80
    private final Set<URL> activeRoots;
81
81
82
    public ProxyBinaryIndexerFactory(
82
    public ProxyBinaryIndexerFactory(
Lines 108-115 Link Here
108
108
109
    @Override
109
    @Override
110
    @org.netbeans.api.annotations.common.SuppressWarnings(
110
    @org.netbeans.api.annotations.common.SuppressWarnings(
111
        value="DMI_COLLECTION_OF_URLS"
111
        value="DMI_COLLECTION_OF_URLS",
112
        /*,justification="URLs have never host part. Already verified by PathRegistry and RepositoryUpdater."*/)
112
        justification="URLs have never host part. Already verified by PathRegistry and RepositoryUpdater.")
113
    public void rootsRemoved(Iterable<? extends URL> removedRoots) {
113
    public void rootsRemoved(Iterable<? extends URL> removedRoots) {
114
        final Set<URL> filtered = new HashSet<URL>();
114
        final Set<URL> filtered = new HashSet<URL>();
115
        for (URL removedRoot : removedRoots) {
115
        for (URL removedRoot : removedRoots) {
Lines 126-133 Link Here
126
126
127
    @Override
127
    @Override
128
    @org.netbeans.api.annotations.common.SuppressWarnings(
128
    @org.netbeans.api.annotations.common.SuppressWarnings(
129
        value="DMI_COLLECTION_OF_URLS"
129
        value="DMI_COLLECTION_OF_URLS",
130
        /*,justification="URLs have never host part. Already verified by PathRegistry and RepositoryUpdater."*/)
130
        justification="URLs have never host part. Already verified by PathRegistry and RepositoryUpdater.")
131
    public boolean scanStarted (final Context context) {
131
    public boolean scanStarted (final Context context) {
132
        if (supports(context) != null) {
132
        if (supports(context) != null) {
133
            return SPIAccessor.getInstance().scanStarted(getDelegate(),context);
133
            return SPIAccessor.getInstance().scanStarted(getDelegate(),context);
Lines 242-249 Link Here
242
242
243
        @Override
243
        @Override
244
        @org.netbeans.api.annotations.common.SuppressWarnings(
244
        @org.netbeans.api.annotations.common.SuppressWarnings(
245
        value="DMI_COLLECTION_OF_URLS"
245
        value="DMI_COLLECTION_OF_URLS",
246
        /*,justification="URLs have never host part. Already verified by PathRegistry and RepositoryUpdater."*/)
246
        justification="URLs have never host part. Already verified by PathRegistry and RepositoryUpdater.")
247
        protected void index(@NonNull final Context context) {
247
        protected void index(@NonNull final Context context) {
248
            final Map<String,? extends Iterable<? extends FileObject>> matchedFiles = supports(context);
248
            final Map<String,? extends Iterable<? extends FileObject>> matchedFiles = supports(context);
249
            if (matchedFiles != null) {
249
            if (matchedFiles != null) {
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/RepositoryUpdater.java (-78 / +78 lines)
Lines 300-307 Link Here
300
     *   added/removed, file is modified, editor tabs are switched, etc).
300
     *   added/removed, file is modified, editor tabs are switched, etc).
301
     */
301
     */
302
    @org.netbeans.api.annotations.common.SuppressWarnings(
302
    @org.netbeans.api.annotations.common.SuppressWarnings(
303
        value="DMI_COLLECTION_OF_URLS"
303
        value="DMI_COLLECTION_OF_URLS",
304
        /*,justification="URLs have never host part"*/)
304
        justification="URLs have never host part")
305
    public void addIndexingJob(
305
    public void addIndexingJob(
306
        @NonNull final URL rootUrl,
306
        @NonNull final URL rootUrl,
307
        @NullAllowed Collection<? extends URL> fileUrls,
307
        @NullAllowed Collection<? extends URL> fileUrls,
Lines 525-532 Link Here
525
    // -----------------------------------------------------------------------
525
    // -----------------------------------------------------------------------
526
526
527
    @org.netbeans.api.annotations.common.SuppressWarnings(
527
    @org.netbeans.api.annotations.common.SuppressWarnings(
528
        value="DMI_COLLECTION_OF_URLS"
528
        value="DMI_COLLECTION_OF_URLS",
529
        /*,justification="URLs have never host part. Already verified by PathRegistry"*/)
529
        justification="URLs have never host part. Already verified by PathRegistry")
530
    @Override
530
    @Override
531
    public void pathsChanged(PathRegistryEvent event) {
531
    public void pathsChanged(PathRegistryEvent event) {
532
        assert event != null;
532
        assert event != null;
Lines 1222-1245 Link Here
1222
    /* test */ volatile static Source unitTestActiveSource;
1222
    /* test */ volatile static Source unitTestActiveSource;
1223
1223
1224
    @org.netbeans.api.annotations.common.SuppressWarnings(
1224
    @org.netbeans.api.annotations.common.SuppressWarnings(
1225
        value="DMI_COLLECTION_OF_URLS"
1225
        value="DMI_COLLECTION_OF_URLS",
1226
        /*,justification="URLs have never host part"*/)
1226
        justification="URLs have never host part")
1227
    private final Map<URL, List<URL>>scannedRoots2Dependencies = Collections.synchronizedMap(new TreeMap<URL, List<URL>>(new LexicographicComparator(true)));
1227
    private final Map<URL, List<URL>>scannedRoots2Dependencies = Collections.synchronizedMap(new TreeMap<URL, List<URL>>(new LexicographicComparator(true)));
1228
    @org.netbeans.api.annotations.common.SuppressWarnings(
1228
    @org.netbeans.api.annotations.common.SuppressWarnings(
1229
        value="DMI_COLLECTION_OF_URLS"
1229
        value="DMI_COLLECTION_OF_URLS",
1230
        /*,justification="URLs have never host part"*/)
1230
        justification="URLs have never host part")
1231
    private final Map<URL, List<URL>>scannedBinaries2InvDependencies = Collections.synchronizedMap(new HashMap<URL,List<URL>>());
1231
    private final Map<URL, List<URL>>scannedBinaries2InvDependencies = Collections.synchronizedMap(new HashMap<URL,List<URL>>());
1232
    @org.netbeans.api.annotations.common.SuppressWarnings(
1232
    @org.netbeans.api.annotations.common.SuppressWarnings(
1233
        value="DMI_COLLECTION_OF_URLS"
1233
        value="DMI_COLLECTION_OF_URLS",
1234
        /*,justification="URLs have never host part"*/)
1234
        justification="URLs have never host part")
1235
    private final Map<URL, List<URL>>scannedRoots2Peers = Collections.synchronizedMap(new TreeMap<URL, List<URL>>(new LexicographicComparator(true)));
1235
    private final Map<URL, List<URL>>scannedRoots2Peers = Collections.synchronizedMap(new TreeMap<URL, List<URL>>(new LexicographicComparator(true)));
1236
    @org.netbeans.api.annotations.common.SuppressWarnings(
1236
    @org.netbeans.api.annotations.common.SuppressWarnings(
1237
        value="DMI_COLLECTION_OF_URLS"
1237
        value="DMI_COLLECTION_OF_URLS",
1238
        /*,justification="URLs have never host part"*/)
1238
        justification="URLs have never host part")
1239
    private final Set<URL>scannedUnknown = Collections.synchronizedSet(new HashSet<URL>());
1239
    private final Set<URL>scannedUnknown = Collections.synchronizedSet(new HashSet<URL>());
1240
    @org.netbeans.api.annotations.common.SuppressWarnings(
1240
    @org.netbeans.api.annotations.common.SuppressWarnings(
1241
        value="DMI_COLLECTION_OF_URLS"
1241
        value="DMI_COLLECTION_OF_URLS",
1242
        /*,justification="URLs have never host part"*/)
1242
        justification="URLs have never host part")
1243
    private final Set<URL>sourcesForBinaryRoots = Collections.synchronizedSet(new HashSet<URL>());
1243
    private final Set<URL>sourcesForBinaryRoots = Collections.synchronizedSet(new HashSet<URL>());
1244
1244
1245
    private volatile State state = State.CREATED;
1245
    private volatile State state = State.CREATED;
Lines 1621-1628 Link Here
1621
    }
1621
    }
1622
1622
1623
    @org.netbeans.api.annotations.common.SuppressWarnings(
1623
    @org.netbeans.api.annotations.common.SuppressWarnings(
1624
    value="DMI_BLOCKING_METHODS_ON_URL"
1624
    value="DMI_BLOCKING_METHODS_ON_URL",
1625
    /*,justification="URLs have never host part"*/)
1625
    justification="URLs have never host part")
1626
    private static ClassPath.Entry getClassPathEntry (final FileObject root) {
1626
    private static ClassPath.Entry getClassPathEntry (final FileObject root) {
1627
        try {
1627
        try {
1628
            if (root != null) {
1628
            if (root != null) {
Lines 1677-1684 Link Here
1677
    }
1677
    }
1678
1678
1679
    @org.netbeans.api.annotations.common.SuppressWarnings(
1679
    @org.netbeans.api.annotations.common.SuppressWarnings(
1680
        value={"DMI_COLLECTION_OF_URLS","DMI_BLOCKING_METHODS_ON_URL"}
1680
        value={"DMI_COLLECTION_OF_URLS","DMI_BLOCKING_METHODS_ON_URL"},
1681
        /*,justification="URLs have never host part"*/)
1681
        justification="URLs have never host part")
1682
    private static boolean findDependencies(
1682
    private static boolean findDependencies(
1683
            final URL rootURL,
1683
            final URL rootURL,
1684
            final DependenciesContext ctx,
1684
            final DependenciesContext ctx,
Lines 1973-1980 Link Here
1973
    }
1973
    }
1974
1974
1975
    @org.netbeans.api.annotations.common.SuppressWarnings(
1975
    @org.netbeans.api.annotations.common.SuppressWarnings(
1976
        value="DMI_COLLECTION_OF_URLS"
1976
        value="DMI_COLLECTION_OF_URLS",
1977
        /*,justification="URLs have never host part"*/)
1977
        justification="URLs have never host part")
1978
    private static void printMap(Map<URL, List<URL>> deps, Level level) {
1978
    private static void printMap(Map<URL, List<URL>> deps, Level level) {
1979
        Set<URL> sortedRoots = new TreeSet<URL>(C);
1979
        Set<URL> sortedRoots = new TreeSet<URL>(C);
1980
        sortedRoots.addAll(deps.keySet());
1980
        sortedRoots.addAll(deps.keySet());
Lines 1987-1994 Link Here
1987
    }
1987
    }
1988
1988
1989
    @org.netbeans.api.annotations.common.SuppressWarnings(
1989
    @org.netbeans.api.annotations.common.SuppressWarnings(
1990
        value="DMI_COLLECTION_OF_URLS"
1990
        value="DMI_COLLECTION_OF_URLS",
1991
        /*,justification="URLs have never host part"*/)
1991
        justification="URLs have never host part")
1992
    private static StringBuilder printMap(Map<URL, List<URL>> deps, StringBuilder sb) {
1992
    private static StringBuilder printMap(Map<URL, List<URL>> deps, StringBuilder sb) {
1993
        Set<URL> sortedRoots = new TreeSet<URL>(C);
1993
        Set<URL> sortedRoots = new TreeSet<URL>(C);
1994
        sortedRoots.addAll(deps.keySet());
1994
        sortedRoots.addAll(deps.keySet());
Lines 3344-3351 Link Here
3344
        private final Map<URL, List<URL>> scannedRoots2Depencencies;
3344
        private final Map<URL, List<URL>> scannedRoots2Depencencies;
3345
3345
3346
        @org.netbeans.api.annotations.common.SuppressWarnings(
3346
        @org.netbeans.api.annotations.common.SuppressWarnings(
3347
        value="DMI_COLLECTION_OF_URLS"
3347
        value="DMI_COLLECTION_OF_URLS",
3348
        /*,justification="URLs have never host part"*/)
3348
        justification="URLs have never host part")
3349
        public FileListWork (
3349
        public FileListWork (
3350
                Map<URL, List<URL>> scannedRoots2Depencencies,
3350
                Map<URL, List<URL>> scannedRoots2Depencencies,
3351
                URL root, boolean followUpJob,
3351
                URL root, boolean followUpJob,
Lines 3365-3372 Link Here
3365
3365
3366
        @SuppressWarnings("LeakingThisInConstructor")
3366
        @SuppressWarnings("LeakingThisInConstructor")
3367
        @org.netbeans.api.annotations.common.SuppressWarnings(
3367
        @org.netbeans.api.annotations.common.SuppressWarnings(
3368
        value="DMI_COLLECTION_OF_URLS"
3368
        value="DMI_COLLECTION_OF_URLS",
3369
        /*,justification="URLs have never host part"*/)
3369
        justification="URLs have never host part")
3370
        public FileListWork (
3370
        public FileListWork (
3371
                Map<URL, List<URL>> scannedRoots2Depencencies,
3371
                Map<URL, List<URL>> scannedRoots2Depencencies,
3372
                URL root,
3372
                URL root,
Lines 3427-3434 Link Here
3427
3427
3428
        @Override
3428
        @Override
3429
        @org.netbeans.api.annotations.common.SuppressWarnings(
3429
        @org.netbeans.api.annotations.common.SuppressWarnings(
3430
        value="DMI_BLOCKING_METHODS_ON_URL"
3430
        value="DMI_BLOCKING_METHODS_ON_URL",
3431
        /*,justification="URLs have never host part"*/)
3431
        justification="URLs have never host part")
3432
        public boolean absorb(Work newWork) {
3432
        public boolean absorb(Work newWork) {
3433
            if (newWork instanceof FileListWork) {
3433
            if (newWork instanceof FileListWork) {
3434
                FileListWork nflw = (FileListWork) newWork;
3434
                FileListWork nflw = (FileListWork) newWork;
Lines 3487-3494 Link Here
3487
3487
3488
        @Override
3488
        @Override
3489
        @org.netbeans.api.annotations.common.SuppressWarnings(
3489
        @org.netbeans.api.annotations.common.SuppressWarnings(
3490
        value="DMI_BLOCKING_METHODS_ON_URL"
3490
        value="DMI_BLOCKING_METHODS_ON_URL",
3491
        /*,justification="URLs have never host part"*/)
3491
        justification="URLs have never host part")
3492
        public boolean absorb(Work newWork) {
3492
        public boolean absorb(Work newWork) {
3493
            if (newWork instanceof BinaryWork) {
3493
            if (newWork instanceof BinaryWork) {
3494
                return root.equals(((BinaryWork) newWork).root);
3494
                return root.equals(((BinaryWork) newWork).root);
Lines 3562-3569 Link Here
3562
3562
3563
        @Override
3563
        @Override
3564
        @org.netbeans.api.annotations.common.SuppressWarnings(
3564
        @org.netbeans.api.annotations.common.SuppressWarnings(
3565
        value="DMI_BLOCKING_METHODS_ON_URL"
3565
        value="DMI_BLOCKING_METHODS_ON_URL",
3566
        /*,justification="URLs have never host part"*/)
3566
        justification="URLs have never host part")
3567
        public boolean absorb(Work newWork) {
3567
        public boolean absorb(Work newWork) {
3568
            if (newWork instanceof DeleteWork) {
3568
            if (newWork instanceof DeleteWork) {
3569
                DeleteWork ndw = (DeleteWork) newWork;
3569
                DeleteWork ndw = (DeleteWork) newWork;
Lines 3587-3594 Link Here
3587
        private final Set<URL> sourcesForBinaryRoots;
3587
        private final Set<URL> sourcesForBinaryRoots;
3588
3588
3589
        @org.netbeans.api.annotations.common.SuppressWarnings(
3589
        @org.netbeans.api.annotations.common.SuppressWarnings(
3590
        value="DMI_COLLECTION_OF_URLS"
3590
        value="DMI_COLLECTION_OF_URLS",
3591
        /*,justification="URLs have never host part"*/)
3591
        justification="URLs have never host part")
3592
        public RefreshCifIndices(
3592
        public RefreshCifIndices(
3593
                Collection<? extends IndexerCache.IndexerInfo<CustomIndexerFactory>> cifInfos,
3593
                Collection<? extends IndexerCache.IndexerInfo<CustomIndexerFactory>> cifInfos,
3594
                Map<URL, List<URL>> scannedRoots2Depencencies,
3594
                Map<URL, List<URL>> scannedRoots2Depencencies,
Lines 3623-3630 Link Here
3623
3623
3624
        @Override
3624
        @Override
3625
        @org.netbeans.api.annotations.common.SuppressWarnings(
3625
        @org.netbeans.api.annotations.common.SuppressWarnings(
3626
        value="DMI_COLLECTION_OF_URLS"
3626
        value="DMI_COLLECTION_OF_URLS",
3627
        /*,justification="URLs have never host part"*/)
3627
        justification="URLs have never host part")
3628
        protected boolean getDone() {
3628
        protected boolean getDone() {
3629
            switchProgressToDeterminate(scannedRoots2Dependencies.size());
3629
            switchProgressToDeterminate(scannedRoots2Dependencies.size());
3630
            for(URL root : scannedRoots2Dependencies.keySet()) {
3630
            for(URL root : scannedRoots2Dependencies.keySet()) {
Lines 3758-3765 Link Here
3758
        private final Set<URL> sourcesForBinaryRoots;
3758
        private final Set<URL> sourcesForBinaryRoots;
3759
3759
3760
        @org.netbeans.api.annotations.common.SuppressWarnings(
3760
        @org.netbeans.api.annotations.common.SuppressWarnings(
3761
        value="DMI_COLLECTION_OF_URLS"
3761
        value="DMI_COLLECTION_OF_URLS",
3762
        /*,justification="URLs have never host part"*/)
3762
        justification="URLs have never host part")
3763
        public RefreshEifIndices(
3763
        public RefreshEifIndices(
3764
                Collection<? extends IndexerCache.IndexerInfo<EmbeddingIndexerFactory>> eifInfos,
3764
                Collection<? extends IndexerCache.IndexerInfo<EmbeddingIndexerFactory>> eifInfos,
3765
                Map<URL, List<URL>> scannedRoots2Depencencies,
3765
                Map<URL, List<URL>> scannedRoots2Depencencies,
Lines 3794-3801 Link Here
3794
3794
3795
        @Override
3795
        @Override
3796
        @org.netbeans.api.annotations.common.SuppressWarnings(
3796
        @org.netbeans.api.annotations.common.SuppressWarnings(
3797
        value="DMI_COLLECTION_OF_URLS"
3797
        value="DMI_COLLECTION_OF_URLS",
3798
        /*,justification="URLs have never host part"*/)
3798
        justification="URLs have never host part")
3799
        protected boolean getDone() {
3799
        protected boolean getDone() {
3800
            switchProgressToDeterminate(scannedRoots2Dependencies.size());
3800
            switchProgressToDeterminate(scannedRoots2Dependencies.size());
3801
            for(URL root : scannedRoots2Dependencies.keySet()) {
3801
            for(URL root : scannedRoots2Dependencies.keySet()) {
Lines 3920-3927 Link Here
3920
        private Map<URL, Set<FileObject>> checkTimestampFiles;
3920
        private Map<URL, Set<FileObject>> checkTimestampFiles;
3921
3921
3922
        @org.netbeans.api.annotations.common.SuppressWarnings(
3922
        @org.netbeans.api.annotations.common.SuppressWarnings(
3923
        value="DMI_COLLECTION_OF_URLS"
3923
        value="DMI_COLLECTION_OF_URLS",
3924
        /*,justification="URLs have never host part"*/)
3924
        justification="URLs have never host part")
3925
        public RefreshWork(
3925
        public RefreshWork(
3926
                Map<URL, List<URL>> scannedRoots2Depencencies,
3926
                Map<URL, List<URL>> scannedRoots2Depencencies,
3927
                Map<URL, List<URL>> scannedBinaries2InvDependencies,
3927
                Map<URL, List<URL>> scannedBinaries2InvDependencies,
Lines 3954-3961 Link Here
3954
        }
3954
        }
3955
3955
3956
        @org.netbeans.api.annotations.common.SuppressWarnings(
3956
        @org.netbeans.api.annotations.common.SuppressWarnings(
3957
        value="DMI_COLLECTION_OF_URLS"
3957
        value="DMI_COLLECTION_OF_URLS",
3958
        /*,justification="URLs have never host part"*/)
3958
        justification="URLs have never host part")
3959
        protected @Override boolean getDone() {
3959
        protected @Override boolean getDone() {
3960
            if (depCtx == null) {
3960
            if (depCtx == null) {
3961
                depCtx = new DependenciesContext(scannedRoots2Dependencies, scannedBinaries2InvDependencies, scannedRoots2Peers, sourcesForBinaryRoots, false);
3961
                depCtx = new DependenciesContext(scannedRoots2Dependencies, scannedBinaries2InvDependencies, scannedRoots2Peers, sourcesForBinaryRoots, false);
Lines 4160-4167 Link Here
4160
        }
4160
        }
4161
4161
4162
        @org.netbeans.api.annotations.common.SuppressWarnings(
4162
        @org.netbeans.api.annotations.common.SuppressWarnings(
4163
        value="DMI_COLLECTION_OF_URLS"
4163
        value="DMI_COLLECTION_OF_URLS",
4164
        /*,justification="URLs have never host part"*/)
4164
        justification="URLs have never host part")
4165
        private boolean scanRootFiles(Map<URL, Set<FileObject>> files) {
4165
        private boolean scanRootFiles(Map<URL, Set<FileObject>> files) {
4166
            if (files != null && files.size() > 0) { // #174887
4166
            if (files != null && files.size() > 0) { // #174887
4167
                for(Iterator<Map.Entry<URL, Set<FileObject>>> it = files.entrySet().iterator(); it.hasNext(); ) {
4167
                for(Iterator<Map.Entry<URL, Set<FileObject>>> it = files.entrySet().iterator(); it.hasNext(); ) {
Lines 4199-4206 Link Here
4199
        private Level   previousLevel;
4199
        private Level   previousLevel;
4200
4200
4201
        @org.netbeans.api.annotations.common.SuppressWarnings(
4201
        @org.netbeans.api.annotations.common.SuppressWarnings(
4202
        value="DMI_COLLECTION_OF_URLS"
4202
        value="DMI_COLLECTION_OF_URLS",
4203
        /*,justification="URLs have never host part"*/)
4203
        justification="URLs have never host part")
4204
        public RootsWork(
4204
        public RootsWork(
4205
                Map<URL, List<URL>> scannedRoots2Depencencies,
4205
                Map<URL, List<URL>> scannedRoots2Depencencies,
4206
                Map<URL,List<URL>> scannedBinaries2InvDependencies,
4206
                Map<URL,List<URL>> scannedBinaries2InvDependencies,
Lines 4274-4281 Link Here
4274
4274
4275
        @Override
4275
        @Override
4276
        @org.netbeans.api.annotations.common.SuppressWarnings(
4276
        @org.netbeans.api.annotations.common.SuppressWarnings(
4277
        value="DMI_COLLECTION_OF_URLS"
4277
        value="DMI_COLLECTION_OF_URLS",
4278
        /*,justification="URLs have never host part"*/)
4278
        justification="URLs have never host part")
4279
        public boolean getDone() {
4279
        public boolean getDone() {
4280
            TEST_LOGGER.log(Level.FINEST, "RootsWork-started");       //NOI18N
4280
            TEST_LOGGER.log(Level.FINEST, "RootsWork-started");       //NOI18N
4281
            if (getCancelRequest().isRaised()) {
4281
            if (getCancelRequest().isRaised()) {
Lines 4518-4525 Link Here
4518
        }
4518
        }
4519
4519
4520
        @org.netbeans.api.annotations.common.SuppressWarnings(
4520
        @org.netbeans.api.annotations.common.SuppressWarnings(
4521
        value="DMI_COLLECTION_OF_URLS"
4521
        value="DMI_COLLECTION_OF_URLS",
4522
        /*,justification="URLs have never host part"*/)
4522
        justification="URLs have never host part")
4523
        private void notifyRootsRemoved (final Set<URL> binaries, final Set<URL> sources) {
4523
        private void notifyRootsRemoved (final Set<URL> binaries, final Set<URL> sources) {
4524
            if (!binaries.isEmpty()) {
4524
            if (!binaries.isEmpty()) {
4525
                final Collection<? extends BinaryIndexerFactory> binFactories = MimeLookup.getLookup(MimePath.EMPTY).lookupAll(BinaryIndexerFactory.class);
4525
                final Collection<? extends BinaryIndexerFactory> binFactories = MimeLookup.getLookup(MimePath.EMPTY).lookupAll(BinaryIndexerFactory.class);
Lines 4682-4689 Link Here
4682
        }
4682
        }
4683
4683
4684
        @org.netbeans.api.annotations.common.SuppressWarnings(
4684
        @org.netbeans.api.annotations.common.SuppressWarnings(
4685
        value="DMI_COLLECTION_OF_URLS"
4685
        value="DMI_COLLECTION_OF_URLS",
4686
        /*,justification="URLs have never host part"*/)
4686
        justification="URLs have never host part")
4687
        protected final boolean scanSources(DependenciesContext ctx, SourceIndexers indexers, Map<URL, List<URL>> preregisterIn) {
4687
        protected final boolean scanSources(DependenciesContext ctx, SourceIndexers indexers, Map<URL, List<URL>> preregisterIn) {
4688
            assert ctx != null;
4688
            assert ctx != null;
4689
            long scannedRootsCnt = 0;
4689
            long scannedRootsCnt = 0;
Lines 5057-5064 Link Here
5057
        private final boolean waitForProjects;
5057
        private final boolean waitForProjects;
5058
5058
5059
        @org.netbeans.api.annotations.common.SuppressWarnings(
5059
        @org.netbeans.api.annotations.common.SuppressWarnings(
5060
        value="DMI_COLLECTION_OF_URLS"
5060
        value="DMI_COLLECTION_OF_URLS",
5061
        /*,justification="URLs have never host part"*/)
5061
        justification="URLs have never host part")
5062
        public InitialRootsWork(
5062
        public InitialRootsWork(
5063
                Map<URL, List<URL>> scannedRoots2Depencencies,
5063
                Map<URL, List<URL>> scannedRoots2Depencencies,
5064
                Map<URL,List<URL>>  scannedBinaries2InvDependencies,
5064
                Map<URL,List<URL>>  scannedBinaries2InvDependencies,
Lines 5477-5484 Link Here
5477
            }
5477
            }
5478
        }
5478
        }
5479
        @org.netbeans.api.annotations.common.SuppressWarnings(
5479
        @org.netbeans.api.annotations.common.SuppressWarnings(
5480
        value="DMI_COLLECTION_OF_URLS"
5480
        value="DMI_COLLECTION_OF_URLS",
5481
        /*,justification="URLs have never host part"*/)
5481
        justification="URLs have never host part")
5482
        private Work getWork () {
5482
        private Work getWork () {
5483
            synchronized (todo) {
5483
            synchronized (todo) {
5484
                Work w;
5484
                Work w;
Lines 5581-5588 Link Here
5581
        private final boolean useInitialState;
5581
        private final boolean useInitialState;
5582
5582
5583
        @org.netbeans.api.annotations.common.SuppressWarnings(
5583
        @org.netbeans.api.annotations.common.SuppressWarnings(
5584
        value="DMI_COLLECTION_OF_URLS"
5584
        value="DMI_COLLECTION_OF_URLS",
5585
        /*,justification="URLs have never host part"*/)
5585
        justification="URLs have never host part")
5586
        public DependenciesContext (
5586
        public DependenciesContext (
5587
                final Map<URL, List<URL>> scannedRoots2Deps,
5587
                final Map<URL, List<URL>> scannedRoots2Deps,
5588
                final Map<URL,List<URL>>  scannedBinaries2InvDependencies,
5588
                final Map<URL,List<URL>>  scannedBinaries2InvDependencies,
Lines 5718-5741 Link Here
5718
5718
5719
        @Override
5719
        @Override
5720
        @org.netbeans.api.annotations.common.SuppressWarnings(
5720
        @org.netbeans.api.annotations.common.SuppressWarnings(
5721
        value="DMI_COLLECTION_OF_URLS"
5721
        value="DMI_COLLECTION_OF_URLS",
5722
        /*,justification="URLs have never host part"*/)
5722
        justification="URLs have never host part")
5723
        public synchronized Map<URL, List<URL>> getRootDependencies() {
5723
        public synchronized Map<URL, List<URL>> getRootDependencies() {
5724
            return roots2Dependencies;
5724
            return roots2Dependencies;
5725
        }
5725
        }
5726
5726
5727
        @Override
5727
        @Override
5728
        @org.netbeans.api.annotations.common.SuppressWarnings(
5728
        @org.netbeans.api.annotations.common.SuppressWarnings(
5729
        value="DMI_COLLECTION_OF_URLS"
5729
        value="DMI_COLLECTION_OF_URLS",
5730
        /*,justification="URLs have never host part"*/)
5730
        justification="URLs have never host part")
5731
        public synchronized Map<URL, List<URL>> getBinaryRootDependencies() {
5731
        public synchronized Map<URL, List<URL>> getBinaryRootDependencies() {
5732
            return binRoots2Dependencies;
5732
            return binRoots2Dependencies;
5733
        }
5733
        }
5734
        
5734
        
5735
        @Override
5735
        @Override
5736
        @org.netbeans.api.annotations.common.SuppressWarnings(
5736
        @org.netbeans.api.annotations.common.SuppressWarnings(
5737
        value="DMI_COLLECTION_OF_URLS"
5737
        value="DMI_COLLECTION_OF_URLS",
5738
        /*,justification="URLs have never host part"*/)
5738
        justification="URLs have never host part")
5739
        public Map<URL, List<URL>> getRootPeers() {
5739
        public Map<URL, List<URL>> getRootPeers() {
5740
            return roots2Peers;
5740
            return roots2Peers;
5741
        }
5741
        }
Lines 5862-5869 Link Here
5862
        }
5862
        }
5863
5863
5864
        @org.netbeans.api.annotations.common.SuppressWarnings(
5864
        @org.netbeans.api.annotations.common.SuppressWarnings(
5865
        value="DMI_COLLECTION_OF_URLS"
5865
        value="DMI_COLLECTION_OF_URLS",
5866
        /*,justification="URLs have never host part"*/)
5866
        justification="URLs have never host part")
5867
        public synchronized boolean add(
5867
        public synchronized boolean add(
5868
                @NonNull final URL root,
5868
                @NonNull final URL root,
5869
                final boolean sourceRoot,
5869
                final boolean sourceRoot,
Lines 5911-5918 Link Here
5911
        }
5911
        }
5912
5912
5913
        @org.netbeans.api.annotations.common.SuppressWarnings(
5913
        @org.netbeans.api.annotations.common.SuppressWarnings(
5914
        value="DMI_COLLECTION_OF_URLS"
5914
        value="DMI_COLLECTION_OF_URLS",
5915
        /*,justification="URLs have never host part"*/)
5915
        justification="URLs have never host part")
5916
        public synchronized void remove(final Iterable<? extends URL> roots, final boolean sourceRoot) {
5916
        public synchronized void remove(final Iterable<? extends URL> roots, final boolean sourceRoot) {
5917
            for (URL root : roots) {
5917
            for (URL root : roots) {
5918
                if (sourceRoot) {
5918
                if (sourceRoot) {
Lines 6077-6108 Link Here
6077
6077
6078
    //Unit test method
6078
    //Unit test method
6079
    @org.netbeans.api.annotations.common.SuppressWarnings(
6079
    @org.netbeans.api.annotations.common.SuppressWarnings(
6080
        value="DMI_COLLECTION_OF_URLS"
6080
        value="DMI_COLLECTION_OF_URLS",
6081
        /*,justification="URLs have never host part"*/)
6081
        justification="URLs have never host part")
6082
    /* test */ Set<URL> getScannedBinaries () {
6082
    /* test */ Set<URL> getScannedBinaries () {
6083
        return this.scannedBinaries2InvDependencies.keySet();
6083
        return this.scannedBinaries2InvDependencies.keySet();
6084
    }
6084
    }
6085
6085
6086
    //Unit test method
6086
    //Unit test method
6087
    @org.netbeans.api.annotations.common.SuppressWarnings(
6087
    @org.netbeans.api.annotations.common.SuppressWarnings(
6088
        value="DMI_COLLECTION_OF_URLS"
6088
        value="DMI_COLLECTION_OF_URLS",
6089
        /*,justification="URLs have never host part"*/)
6089
        justification="URLs have never host part")
6090
    /* test */ Set<URL> getScannedSources () {
6090
    /* test */ Set<URL> getScannedSources () {
6091
        return this.scannedRoots2Dependencies.keySet();
6091
        return this.scannedRoots2Dependencies.keySet();
6092
    }
6092
    }
6093
6093
6094
    //Unit test method
6094
    //Unit test method
6095
    @org.netbeans.api.annotations.common.SuppressWarnings(
6095
    @org.netbeans.api.annotations.common.SuppressWarnings(
6096
        value="DMI_COLLECTION_OF_URLS"
6096
        value="DMI_COLLECTION_OF_URLS",
6097
        /*,justification="URLs have never host part"*/)
6097
        justification="URLs have never host part")
6098
    /* test */ Map<URL,List<URL>> getScannedRoots2Dependencies() {
6098
    /* test */ Map<URL,List<URL>> getScannedRoots2Dependencies() {
6099
        return this.scannedRoots2Dependencies;
6099
        return this.scannedRoots2Dependencies;
6100
    }
6100
    }
6101
6101
6102
    //Unit test method
6102
    //Unit test method
6103
    @org.netbeans.api.annotations.common.SuppressWarnings(
6103
    @org.netbeans.api.annotations.common.SuppressWarnings(
6104
        value="DMI_COLLECTION_OF_URLS"
6104
        value="DMI_COLLECTION_OF_URLS",
6105
        /*,justification="URLs have never host part"*/)
6105
        justification="URLs have never host part")
6106
    /* test */ Set<URL> getScannedUnknowns () {
6106
    /* test */ Set<URL> getScannedUnknowns () {
6107
        return this.scannedUnknown;
6107
        return this.scannedUnknown;
6108
    }
6108
    }
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/errors/ErrorAnnotator.java (-4 / +4 lines)
Lines 200-207 Link Here
200
    }
200
    }
201
201
202
    @org.netbeans.api.annotations.common.SuppressWarnings(
202
    @org.netbeans.api.annotations.common.SuppressWarnings(
203
    value="DMI_COLLECTION_OF_URLS"
203
    value="DMI_COLLECTION_OF_URLS",
204
    /*,justification="URLs have never host part"*/)
204
    justification="URLs have never host part")
205
    public synchronized void updateInError(Set<URL> urls)  {
205
    public synchronized void updateInError(Set<URL> urls)  {
206
        Set<FileObject> toRefresh = new HashSet<FileObject>();
206
        Set<FileObject> toRefresh = new HashSet<FileObject>();
207
        for (Iterator<FileObject> it = knownFiles2Error.keySet().iterator(); it.hasNext(); ) {
207
        for (Iterator<FileObject> it = knownFiles2Error.keySet().iterator(); it.hasNext(); ) {
Lines 408-415 Link Here
408
408
409
                @Override
409
                @Override
410
                @org.netbeans.api.annotations.common.SuppressWarnings(
410
                @org.netbeans.api.annotations.common.SuppressWarnings(
411
                value="DMI_COLLECTION_OF_URLS"
411
                value="DMI_COLLECTION_OF_URLS",
412
                /*,justification="URLs have never host part"*/)
412
                justification="URLs have never host part")
413
                public void run() {
413
                public void run() {
414
                    try {
414
                    try {
415
                        Set<URL> toRefresh = new HashSet<URL>();
415
                        Set<URL> toRefresh = new HashSet<URL>();
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/errors/TaskCache.java (-4 / +4 lines)
Lines 591-602 Link Here
591
    private static final class TransactionContext {
591
    private static final class TransactionContext {
592
        private int depth;
592
        private int depth;
593
        @org.netbeans.api.annotations.common.SuppressWarnings(
593
        @org.netbeans.api.annotations.common.SuppressWarnings(
594
        value="DMI_COLLECTION_OF_URLS"
594
        value="DMI_COLLECTION_OF_URLS",
595
        /*,justification="URLs have never host part"*/)
595
        justification="URLs have never host part")
596
        private Set<URL> toRefresh = new HashSet<URL>();
596
        private Set<URL> toRefresh = new HashSet<URL>();
597
        @org.netbeans.api.annotations.common.SuppressWarnings(
597
        @org.netbeans.api.annotations.common.SuppressWarnings(
598
        value="DMI_COLLECTION_OF_URLS"
598
        value="DMI_COLLECTION_OF_URLS",
599
        /*,justification="URLs have never host part"*/)
599
        justification="URLs have never host part")
600
        private Set<URL> rootsToRefresh = new HashSet<URL>();
600
        private Set<URL> rootsToRefresh = new HashSet<URL>();
601
    }
601
    }
602
}
602
}
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/friendapi/IndexingController.java (-6 / +6 lines)
Lines 64-81 Link Here
64
    public abstract boolean isInProtectedMode();
64
    public abstract boolean isInProtectedMode();
65
65
66
    @org.netbeans.api.annotations.common.SuppressWarnings(
66
    @org.netbeans.api.annotations.common.SuppressWarnings(
67
    value="DMI_COLLECTION_OF_URLS"
67
    value="DMI_COLLECTION_OF_URLS",
68
    /*,justification="URLs have never host part"*/)
68
    justification="URLs have never host part")
69
    public abstract Map<URL, List<URL>> getRootDependencies();
69
    public abstract Map<URL, List<URL>> getRootDependencies();
70
70
71
    @org.netbeans.api.annotations.common.SuppressWarnings(
71
    @org.netbeans.api.annotations.common.SuppressWarnings(
72
    value="DMI_COLLECTION_OF_URLS"
72
    value="DMI_COLLECTION_OF_URLS",
73
    /*,justification="URLs have never host part"*/)
73
    justification="URLs have never host part")
74
    public abstract Map<URL, List<URL>> getBinaryRootDependencies();
74
    public abstract Map<URL, List<URL>> getBinaryRootDependencies();
75
75
76
    @org.netbeans.api.annotations.common.SuppressWarnings(
76
    @org.netbeans.api.annotations.common.SuppressWarnings(
77
    value="DMI_COLLECTION_OF_URLS"
77
    value="DMI_COLLECTION_OF_URLS",
78
    /*,justification="URLs have never host part"*/)
78
    justification="URLs have never host part")
79
    public abstract Map<URL, List<URL>> getRootPeers();
79
    public abstract Map<URL, List<URL>> getRootPeers();
80
80
81
    public abstract int getFileLocksDelay();
81
    public abstract int getFileLocksDelay();
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/lucene/DocumentBasedIndexManager.java (-4 / +4 lines)
Lines 70-77 Link Here
70
70
71
    //@GuardedBy("this")
71
    //@GuardedBy("this")
72
    @org.netbeans.api.annotations.common.SuppressWarnings(
72
    @org.netbeans.api.annotations.common.SuppressWarnings(
73
    value="DMI_COLLECTION_OF_URLS"
73
    value="DMI_COLLECTION_OF_URLS",
74
    /*,justification="URLs have never host part"*/)
74
    justification="URLs have never host part")
75
    private final Map<URL, Pair<DocumentIndex.Transactional, DocumentIndexCache>> indexes =
75
    private final Map<URL, Pair<DocumentIndex.Transactional, DocumentIndexCache>> indexes =
76
            new HashMap<URL, Pair<DocumentIndex.Transactional, DocumentIndexCache>> ();
76
            new HashMap<URL, Pair<DocumentIndex.Transactional, DocumentIndexCache>> ();
77
    //@GuardedBy("this")
77
    //@GuardedBy("this")
Lines 96-103 Link Here
96
96
97
   @CheckForNull
97
   @CheckForNull
98
   @org.netbeans.api.annotations.common.SuppressWarnings(
98
   @org.netbeans.api.annotations.common.SuppressWarnings(
99
    value="DMI_COLLECTION_OF_URLS"
99
    value="DMI_COLLECTION_OF_URLS",
100
    /*,justification="URLs have never host part"*/)
100
    justification="URLs have never host part")
101
    public synchronized DocumentIndex.Transactional getIndex (final URL root, final Mode mode) throws IOException {
101
    public synchronized DocumentIndex.Transactional getIndex (final URL root, final Mode mode) throws IOException {
102
        assert root != null;
102
        assert root != null;
103
        assert PathRegistry.noHostPart(root) : root;
103
        assert PathRegistry.noHostPart(root) : root;
(-)a/parsing.api/src/org/netbeans/modules/parsing/spi/indexing/support/QuerySupport.java (-4 / +4 lines)
Lines 485-492 Link Here
485
        }
485
        }
486
486
487
        @org.netbeans.api.annotations.common.SuppressWarnings(
487
        @org.netbeans.api.annotations.common.SuppressWarnings(
488
        value="DMI_COLLECTION_OF_URLS"
488
        value="DMI_COLLECTION_OF_URLS",
489
        /*,justification="URLs have never host part"*/)
489
        justification="URLs have never host part")
490
        public Iterable<? extends Pair<URL, LayeredDocumentIndex>> getIndices(List<? extends URL> roots) {
490
        public Iterable<? extends Pair<URL, LayeredDocumentIndex>> getIndices(List<? extends URL> roots) {
491
            synchronized (root2index) {
491
            synchronized (root2index) {
492
                List<Pair<URL, LayeredDocumentIndex>> indices = new LinkedList<Pair<URL, LayeredDocumentIndex>>();
492
                List<Pair<URL, LayeredDocumentIndex>> indices = new LinkedList<Pair<URL, LayeredDocumentIndex>>();
Lines 525-532 Link Here
525
525
526
        private final String indexerId;
526
        private final String indexerId;
527
        @org.netbeans.api.annotations.common.SuppressWarnings(
527
        @org.netbeans.api.annotations.common.SuppressWarnings(
528
        value="DMI_COLLECTION_OF_URLS"
528
        value="DMI_COLLECTION_OF_URLS",
529
        /*,justification="URLs have never host part"*/)
529
        justification="URLs have never host part")
530
        private final Map<URL, Reference<LayeredDocumentIndex>> root2index = new HashMap<URL, Reference<LayeredDocumentIndex>>();
530
        private final Map<URL, Reference<LayeredDocumentIndex>> root2index = new HashMap<URL, Reference<LayeredDocumentIndex>>();
531
531
532
        private IndexerQuery(String indexerId) {
532
        private IndexerQuery(String indexerId) {
(-)a/web.clientproject/nbproject/project.xml (-1 / +1 lines)
Lines 11-17 Link Here
11
                    <compile-dependency/>
11
                    <compile-dependency/>
12
                    <run-dependency>
12
                    <run-dependency>
13
                        <release-version>1</release-version>
13
                        <release-version>1</release-version>
14
                        <specification-version>1.13</specification-version>
14
                        <specification-version>1.19</specification-version>
15
                    </run-dependency>
15
                    </run-dependency>
16
                </dependency>
16
                </dependency>
17
                <dependency>
17
                <dependency>
(-)a/web.clientproject/src/org/netbeans/modules/web/clientproject/ui/wizard/CreateSiteTemplate.java (-1 / +1 lines)
Lines 668-674 Link Here
668
668
669
    }
669
    }
670
670
671
    @org.netbeans.api.annotations.common.SuppressWarnings("RV_RETURN_VALUE_IGNORED_BAD_PRACTICE") // justification="checking return value of createNewFile() is pointless"
671
    @org.netbeans.api.annotations.common.SuppressWarnings(value="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE", justification="checking return value of createNewFile() is pointless")
672
    private static void createZipFile(File templateFile, ClientSideProject project, Node rootNode) throws IOException {
672
    private static void createZipFile(File templateFile, ClientSideProject project, Node rootNode) throws IOException {
673
        if (!templateFile.exists()) {
673
        if (!templateFile.exists()) {
674
            templateFile.createNewFile();
674
            templateFile.createNewFile();
(-)a/web.inspect/src/org/netbeans/modules/web/inspect/webkit/ui/CSSStylesDocumentPanel.java (-1 / +1 lines)
Lines 102-108 Link Here
102
    /** Explorer manager provided by this panel. */
102
    /** Explorer manager provided by this panel. */
103
    private ExplorerManager manager = new ExplorerManager();
103
    private ExplorerManager manager = new ExplorerManager();
104
    /** Lookup of this panel. */
104
    /** Lookup of this panel. */
105
    @org.netbeans.api.annotations.common.SuppressWarnings("SE_TRANSIENT_FIELD_NOT_RESTORED") // justification="The instances are never serialized." // NOI18N
105
    @org.netbeans.api.annotations.common.SuppressWarnings(value="SE_TRANSIENT_FIELD_NOT_RESTORED", justification="The instances are never serialized.") // NOI18N
106
    private transient Lookup lookup = ExplorerUtils.createLookup(getExplorerManager(), getActionMap());
106
    private transient Lookup lookup = ExplorerUtils.createLookup(getExplorerManager(), getActionMap());
107
    /** Filter for the tree displayed in this panel. */
107
    /** Filter for the tree displayed in this panel. */
108
    private transient Filter filter = new Filter();
108
    private transient Filter filter = new Filter();
(-)a/web.inspect/src/org/netbeans/modules/web/inspect/webkit/ui/CSSStylesSelectionPanel.java (-1 / +1 lines)
Lines 332-338 Link Here
332
     *
332
     *
333
     * @return Style Cascade section.
333
     * @return Style Cascade section.
334
     */
334
     */
335
    @org.netbeans.api.annotations.common.SuppressWarnings("SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION") // justification="The instances are never serialized." // NOI18N
335
    @org.netbeans.api.annotations.common.SuppressWarnings(value="SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION", justification="The instances are never serialized.") // NOI18N
336
    private JPanel initRulePane() {
336
    private JPanel initRulePane() {
337
        rulePane = new ListView() {
337
        rulePane = new ListView() {
338
            {
338
            {
(-)a/web.webkit.debugging/nbproject/project.xml (-1 / +1 lines)
Lines 11-17 Link Here
11
                    <compile-dependency/>
11
                    <compile-dependency/>
12
                    <run-dependency>
12
                    <run-dependency>
13
                        <release-version>1</release-version>
13
                        <release-version>1</release-version>
14
                        <specification-version>1.17</specification-version>
14
                        <specification-version>1.19</specification-version>
15
                    </run-dependency>
15
                    </run-dependency>
16
                </dependency>
16
                </dependency>
17
                <dependency>
17
                <dependency>
(-)a/web.webkit.debugging/test/unit/src/org/netbeans/modules/web/webkit/debugging/api/dom/DOMTest.java (-1 / +1 lines)
Lines 412-418 Link Here
412
        }
412
        }
413
413
414
        @Override
414
        @Override
415
        @org.netbeans.api.annotations.common.SuppressWarnings("UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") // NOI18N // justification="callback field should be always initialized by registerResponseCallback() method. And if not then it is fine for the method to fail. It is a test anyway."
415
        @org.netbeans.api.annotations.common.SuppressWarnings(value="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR", justification="callback field should be always initialized by registerResponseCallback() method. And if not then it is fine for the method to fail. It is a test anyway.") // NOI18N
416
        public void sendCommand(Command command) throws TransportStateException {
416
        public void sendCommand(Command command) throws TransportStateException {
417
            JSONObject jsonCommand = command.getCommand();
417
            JSONObject jsonCommand = command.getCommand();
418
            Object id = jsonCommand.get(Command.COMMAND_ID);
418
            Object id = jsonCommand.get(Command.COMMAND_ID);

Return to bug 221381