This is an automated email from the ASF dual-hosted git repository.

sdedic 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 78df205ff1 Use custom serialization for fileobject subclasses.
     new c07ee007fd Merge pull request #5211 from 
sdedic/lsp/serialize-fileobject
78df205ff1 is described below

commit 78df205ff166728832bc7872d3d98ebd666e919c
Author: Svata Dedic <svatopluk.de...@oracle.com>
AuthorDate: Thu Jan 5 15:23:13 2023 +0100

    Use custom serialization for fileobject subclasses.
---
 .../modules/nbcode/integration/commands/ProjectMetadataCommand.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/commands/ProjectMetadataCommand.java
 
b/java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/commands/ProjectMetadataCommand.java
index 990bd74e1f..07cee39791 100644
--- 
a/java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/commands/ProjectMetadataCommand.java
+++ 
b/java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/commands/ProjectMetadataCommand.java
@@ -98,7 +98,7 @@ public class ProjectMetadataCommand extends 
CodeActionsProvider {
             .registerTypeAdapterFactory(new TypeAdapterFactory() {
                 @Override
                 public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> tt) {
-                    if (tt.getRawType() != FileObject.class) {
+                    if (!FileObject.class.isAssignableFrom(tt.getRawType())) {
                         return null;
                     }
                     return new TypeAdapter<T>() {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to