geertjanw closed pull request #340: [NETBEANS-227] Preventing NPE during 
indexing: the parsed fileobject ?
URL: https://github.com/apache/incubator-netbeans/pull/340
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/java.source.base/src/org/netbeans/modules/java/source/parsing/WriteBackTransaction.java
 
b/java.source.base/src/org/netbeans/modules/java/source/parsing/WriteBackTransaction.java
index 6004e7b82..bf135f728 100644
--- 
a/java.source.base/src/org/netbeans/modules/java/source/parsing/WriteBackTransaction.java
+++ 
b/java.source.base/src/org/netbeans/modules/java/source/parsing/WriteBackTransaction.java
@@ -18,6 +18,7 @@
  */
 package org.netbeans.modules.java.source.parsing;
 
+import com.sun.tools.javac.api.ClientCodeWrapper.Trusted;
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.File;
@@ -387,6 +388,7 @@ static File toFile(JavaFileObject o) {
      * 
      * The CacheFO may be "flushed" (written to shadowFile) or "committed" 
(moved to the final dest).
      */
+    @Trusted
     static class CachedFileObject extends FileObjects.FileBase {
 
         private static final byte[] NOTHING = new byte[0];


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to