From d36b9ba5f6ab3b2896bd3200c183ba27a583bcad Mon Sep 17 00:00:00 2001 From: D-Dragon Date: Tue, 30 Jun 2020 14:55:53 +0200 Subject: [PATCH] Testing Events --- src/main/java/smells/eventtest/EventTest.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/main/java/smells/eventtest/EventTest.java diff --git a/src/main/java/smells/eventtest/EventTest.java b/src/main/java/smells/eventtest/EventTest.java new file mode 100644 index 0000000..9c2696a --- /dev/null +++ b/src/main/java/smells/eventtest/EventTest.java @@ -0,0 +1,23 @@ +package smells.incorrectorderofmodifiers; + +/** + * According to the Java Language Specification (JLS), a certain order for + * modifiers must be adhered to. Otherwise, it makes the code more difficult to + * read, since most developers are used to this order. + */ +public class IncorrectOrderOfModifiers { + + /** + * expected: private static final int + */ + private final static int MULTIPLIER = 5; + + /** + * + * @return + */ + protected int getMultiplier() { + return MULTIPLIER; + } + +}