Skip to content

Commit

Permalink
Merge pull request #20322 from ia3andy/default-codestart-support
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy authored Sep 22, 2021
2 parents 67e2f83 + 8b1e0fc commit ebd1013
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ metadata:
categories:
- "web"
status: "stable"
codestart:
name: "resteasy-reactive"
kind: "core"
languages:
- "java"
- "kotlin"
- "scala"
artifact: "io.quarkus:quarkus-project-core-extension-codestarts"
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ metadata:
status: "stable"
codestart:
name: "resteasy-reactive"
kind: "core"
languages:
- "java"
- "kotlin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ metadata:
status: "stable"
codestart:
name: "resteasy-reactive"
kind: "core"
languages:
- "java"
- "kotlin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ metadata:
status: "stable"
codestart:
name: "resteasy-reactive"
kind: "core"
languages:
- "java"
- "kotlin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metadata:
status: "stable"
codestart:
name: "resteasy-reactive"
kind: "core"
languages:
- "java"
- "kotlin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ metadata:
status: "experimental"
codestart:
name: "resteasy-reactive"
kind: "core"
languages:
- "java"
- "kotlin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ metadata:
status: "stable"
codestart:
name: "resteasy-reactive"
kind: "core"
languages:
- "java"
- "kotlin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metadata:
status: "stable"
codestart:
name: "resteasy-reactive"
kind: "core"
languages:
- "java"
- "kotlin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ public <T extends Enum<T>> T toEnum(Class<T> clazz, T defaultValue) {
if (name == null) {
return defaultValue;
}
return T.valueOf(clazz, name.toUpperCase(Locale.ROOT).replace('-', '_'));
try {
return T.valueOf(clazz, name.toUpperCase(Locale.ROOT).replace('-', '_'));
} catch (IllegalArgumentException e) {
return defaultValue;
}
}

}

0 comments on commit ebd1013

Please sign in to comment.