From 5e7aaf3b1e650ca340f1e9b28061445f368492bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 21 Jan 2010 10:41:59 +0100 Subject: [PATCH] Add some @Override annotations. --- src/de/todesbaum/util/freenet/fcp2/Message.java | 1 + src/de/todesbaum/util/freenet/fcp2/Persistence.java | 1 + src/de/todesbaum/util/io/TempFileInputStream.java | 1 + src/de/todesbaum/util/swing/TWizard.java | 1 + 4 files changed, 4 insertions(+) diff --git a/src/de/todesbaum/util/freenet/fcp2/Message.java b/src/de/todesbaum/util/freenet/fcp2/Message.java index c721f0b..4810e76 100644 --- a/src/de/todesbaum/util/freenet/fcp2/Message.java +++ b/src/de/todesbaum/util/freenet/fcp2/Message.java @@ -168,6 +168,7 @@ public class Message { * * @return A textual representation of this message */ + @Override public String toString() { return name + "[identifier=" + identifier + ",parameters=" + parameters.toString() + "]"; } diff --git a/src/de/todesbaum/util/freenet/fcp2/Persistence.java b/src/de/todesbaum/util/freenet/fcp2/Persistence.java index 66253f5..6f6cdca 100644 --- a/src/de/todesbaum/util/freenet/fcp2/Persistence.java +++ b/src/de/todesbaum/util/freenet/fcp2/Persistence.java @@ -80,6 +80,7 @@ public final class Persistence { * * @return The name of this persistence option */ + @Override public String toString() { return name; } diff --git a/src/de/todesbaum/util/io/TempFileInputStream.java b/src/de/todesbaum/util/io/TempFileInputStream.java index 4213deb..5ebeb9b 100644 --- a/src/de/todesbaum/util/io/TempFileInputStream.java +++ b/src/de/todesbaum/util/io/TempFileInputStream.java @@ -49,6 +49,7 @@ public class TempFileInputStream extends FileInputStream { tempFile = file; } + @Override public void close() throws IOException { super.close(); tempFile.delete(); diff --git a/src/de/todesbaum/util/swing/TWizard.java b/src/de/todesbaum/util/swing/TWizard.java index 3eb5062..0ccffbc 100644 --- a/src/de/todesbaum/util/swing/TWizard.java +++ b/src/de/todesbaum/util/swing/TWizard.java @@ -56,6 +56,7 @@ public class TWizard extends JFrame implements WindowListener { private JLabel pageHeading; private JLabel pageDescription; + @Override protected void frameInit() { super.frameInit(); setResizable(false); -- 2.7.4