From f9c138e345f2ae841990302d62713bc43f5bf2c2 Mon Sep 17 00:00:00 2001 From: veselin Date: Fri, 14 Jun 2019 16:27:55 +0200 Subject: [PATCH 1/2] Do some renames. --- Test2.java | 17 ----------------- Test4.java => Test4a.java | 0 Test6.java | 14 ++++++++++++++ 3 files changed, 14 insertions(+), 17 deletions(-) delete mode 100644 Test2.java rename Test4.java => Test4a.java (100%) create mode 100644 Test6.java diff --git a/Test2.java b/Test2.java deleted file mode 100644 index 2c45659..0000000 --- a/Test2.java +++ /dev/null @@ -1,17 +0,0 @@ -import java.security.*; - -class Test { - - - public void IP(byte[] salt) { - encrypt(salt, "SHA-1"); - } - - public void encrypt(byte[] salt, String crypto) { - MessageDigest digest = MessageDigest.getInstance(crypto); - digest.reset(); - digest.update(salt); - digest.digest(); - } -} - diff --git a/Test4.java b/Test4a.java similarity index 100% rename from Test4.java rename to Test4a.java diff --git a/Test6.java b/Test6.java new file mode 100644 index 0000000..d5dbf35 --- /dev/null +++ b/Test6.java @@ -0,0 +1,14 @@ +import java.security.*; + + class Test { + int value; + + int compare(Test o) { + if (o.value > value) return 1; + return 0; + } + + int equalifs(bool cond, Test o) { + if (cond) { return compare(o); } else { return compare(o); } + } +} From 91db07f6bc7a15795e920db42c0c6469d60dad01 Mon Sep 17 00:00:00 2001 From: veselin Date: Fri, 14 Jun 2019 17:28:00 +0200 Subject: [PATCH 2/2] Update with a comment. --- Test1.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Test1.java b/Test1.java index 8c66a56..4bff13a 100644 --- a/Test1.java +++ b/Test1.java @@ -3,6 +3,7 @@ class Test { int value; + // Comment in the code. int compare(Test o) { if (o.value > value) return 1; return 0;