src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/Utils.java
changeset 58727 fa1f838b5486
parent 58477 d148a7e7160c
equal deleted inserted replaced
58726:449555c346d9 58727:fa1f838b5486
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   415     public boolean isExternalizable(TypeElement e) {
   415     public boolean isExternalizable(TypeElement e) {
   416         return typeUtils.isSubtype(e.asType(), getExternalizableType());
   416         return typeUtils.isSubtype(e.asType(), getExternalizableType());
   417     }
   417     }
   418 
   418 
   419     public SortedSet<VariableElement> serializableFields(TypeElement aclass) {
   419     public SortedSet<VariableElement> serializableFields(TypeElement aclass) {
   420         return configuration.workArounds.getSerializableFields(this, aclass);
   420         return configuration.workArounds.getSerializableFields(aclass);
   421     }
   421     }
   422 
   422 
   423     public SortedSet<ExecutableElement> serializationMethods(TypeElement aclass) {
   423     public SortedSet<ExecutableElement> serializationMethods(TypeElement aclass) {
   424         return configuration.workArounds.getSerializationMethods(this, aclass);
   424         return configuration.workArounds.getSerializationMethods(aclass);
   425     }
   425     }
   426 
   426 
   427     public boolean definesSerializableFields(TypeElement aclass) {
   427     public boolean definesSerializableFields(TypeElement aclass) {
   428         return configuration.workArounds.definesSerializableFields(this, aclass);
   428         return configuration.workArounds.definesSerializableFields( aclass);
   429     }
   429     }
   430 
   430 
   431     public String modifiersToString(Element e, boolean trailingSpace) {
   431     public String modifiersToString(Element e, boolean trailingSpace) {
   432         SortedSet<Modifier> set = new TreeSet<>(e.getModifiers());
   432         SortedSet<Modifier> set = new TreeSet<>(e.getModifiers());
   433         set.remove(Modifier.NATIVE);
   433         set.remove(Modifier.NATIVE);