From 57b0d2179161ee13a5793511d564bbd1129781be Mon Sep 17 00:00:00 2001 From: Manuel Maxera <95315128+manumafe98@users.noreply.github.com> Date: Sun, 31 Mar 2024 15:43:56 -0300 Subject: [PATCH] Add Java analyzer comments for Salary Calculator (#2337) --- .../java/salary-calculator/use_ternary_operators.md | 3 +++ .../java/wizards-and-warriors/use_override_annotation.md | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 analyzer-comments/java/salary-calculator/use_ternary_operators.md diff --git a/analyzer-comments/java/salary-calculator/use_ternary_operators.md b/analyzer-comments/java/salary-calculator/use_ternary_operators.md new file mode 100644 index 000000000..7cab55c50 --- /dev/null +++ b/analyzer-comments/java/salary-calculator/use_ternary_operators.md @@ -0,0 +1,3 @@ +# use ternary operators + +As the goal of this exercise is to learn about ternary operators consider using them in `%s` to solve this exercise. diff --git a/analyzer-comments/java/wizards-and-warriors/use_override_annotation.md b/analyzer-comments/java/wizards-and-warriors/use_override_annotation.md index 6c0bb0e6f..78ed6d081 100644 --- a/analyzer-comments/java/wizards-and-warriors/use_override_annotation.md +++ b/analyzer-comments/java/wizards-and-warriors/use_override_annotation.md @@ -3,4 +3,3 @@ Although not strictly necessary, it is a good practice to use the `@Override` annotation when overriding methods from a superclass. Doing so may help prevent errors; if a method marked with `@Override` fails to correctly override a method in one of its superclasses, the compiler will generate an error. -