You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ma...@apache.org on 2020/06/29 15:38:01 UTC
[netbeans] branch master updated: [NETBEANS-4515] - remove use of
proprietary API - ARRAYLENGTH
This is an automated email from the ASF dual-hosted git repository.
matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 8318c76 [NETBEANS-4515] - remove use of proprietary API - ARRAYLENGTH
new 444badd Merge pull request #2220 from BradWalker/remove_proprietary_api_ARRAYLENGTH
8318c76 is described below
commit 8318c76e4925e4341b53d46fe27e45c979ee9121
Author: Brad Walker <bw...@musings.com>
AuthorDate: Sun Jun 28 22:46:49 2020 -0600
[NETBEANS-4515] - remove use of proprietary API - ARRAYLENGTH
The code has a test case that uses a proprietary API field - ARRAYLENGTH..
...
[nb-javac] /home/travis/build/apache/netbeans/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java:21: warning: ARRAYLENGTH is internal proprietary API and may be removed in a future release
[nb-javac] import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;
[nb-javac] ^
[nb-javac] /home/travis/build/apache/netbeans/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java:21: warning: ARRAYLENGTH is internal proprietary API and may be removed in a future release
[nb-javac] import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;
[nb-javac] ^
[nb-javac] /home/travis/build/apache/netbeans/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java:21: warning: ARRAYLENGTH is internal proprietary API and may be removed in a future release
[nb-javac] import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;
[nb-javac] ^
...
Remove the import of this class as it's not used and causes spurious warnings..
---
.../test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java b/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java
index ce231de..6780ccb 100644
--- a/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java
+++ b/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java
@@ -18,7 +18,6 @@
*/
package org.netbeans.api.java.source.gen;
-import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists