Skip to content

Commit

Permalink
Lang.fieldsOf returned list is not threadsafe #245
Browse files Browse the repository at this point in the history
  • Loading branch information
Gelin Luo committed Oct 17, 2021
1 parent ce18685 commit b413dbb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# OSGL Tool Change Log

1.26.3
* Lang.fieldsOf returned list is not threadsafe #245
* Making

1.26.2 - 01/Jan/2021
* Improve XML to JSON convert logic #243

Expand Down
2 changes: 1 addition & 1 deletion VERSION_MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| excel | 1.5.0 | 1.5.0 | 1.6.0 | 1.8.0 | 1.8.0 | 1.9.0 | 1.10.1 | 1.10.2 |
| excel-java7 | | | | | | | 1.10.1 | 1.10.2 |
| genie | 1.9.3 | 1.9.4 | 1.10.0 | 1.12.0 | 1.12.0 | 1.13.0 | 1.13.1 | 1.13.2 |
| http | 1.9.0 | 1.9.0 | 1.10.0 | 1.11.0 | 1.12.0 | 1.13.0 | 1.13.1 | 1.13.2 |
| http | 1.9.0 | 1.9.0 | 1.10.0 | 1.11.0 | 1.12.0 | 1.13.0 | 1.13.1 | 1.13.3 |
| logging | 1.3.0 | 1.3.0 | 1.4.0 | 1.5.0 | 1.5.0 | 1.5.0 | 1.5.0 | 1.5.1 |
| mvc | 1.9.0 | 1.9.0 | 1.10.0 | 1.11.0 | 1.11.0 | 1.13.0 | 1.13.1 | 1.13.2 |
| storage | 1.8.0 | 1.8.0 | 1.9.0 | 1.10.0 | 1.10.0 | 1.10.0 | 1.11.0 | 1.11.1 |
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/osgl/Lang.java
Original file line number Diff line number Diff line change
Expand Up @@ -7976,14 +7976,14 @@ public static List<Field> fieldsOf(Class<?> c, Class<?> rootClass, boolean inclu
List<Field> fields = cache().get(key);
if (null == fields) {
fields = new ArrayList<>();
cache().put(key, fields);
$.Predicate<Field> filter = noStatic ? new $.Predicate<Field>() {
@Override
public boolean test(Field field) {
return !Modifier.isStatic(field.getModifiers());
}
} : null;
addFieldsToList(fields, c, rootClass, includeRootClass, filter);
cache().put(key, fields);
}
return fields;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/osgl/util/Generics.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void buildTypeParamImplLookup(Class theClass, Map<String, Class> l
buildTypeParamImplLookup(theClass.getSuperclass(), lookup);
}

private static void buildTypeParamImplLookup(String prefix, Type[] typeParams, TypeVariable[] typeArgs, Map<String, Class> lookup) {
public static void buildTypeParamImplLookup(String prefix, Type[] typeParams, TypeVariable[] typeArgs, Map<String, Class> lookup) {
int len = typeParams.length;
for (int i = 0; i < len; ++i) {
Type typeParam = typeParams[i];
Expand Down

0 comments on commit b413dbb

Please sign in to comment.