From 35e1d50c2563fc49e58c8190d8b9113c595bb165 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 2 Aug 2018 17:08:37 +0200 Subject: [PATCH] Replace tabs with spaces --- .../worldguardwrapper/flags/BooleanFlag.java | 22 +++++++------- .../worldguardwrapper/flags/DoubleFlag.java | 30 +++++++++---------- .../worldguardwrapper/flags/IntegerFlag.java | 30 +++++++++---------- .../worldguardwrapper/flags/StringFlag.java | 24 +++++++-------- 4 files changed, 53 insertions(+), 53 deletions(-) diff --git a/api/src/main/java/org/codemc/worldguardwrapper/flags/BooleanFlag.java b/api/src/main/java/org/codemc/worldguardwrapper/flags/BooleanFlag.java index d83cfd2..d910cfd 100644 --- a/api/src/main/java/org/codemc/worldguardwrapper/flags/BooleanFlag.java +++ b/api/src/main/java/org/codemc/worldguardwrapper/flags/BooleanFlag.java @@ -16,18 +16,18 @@ public class BooleanFlag extends AbstractFlag { super(name, boolean.class, defaultValue); } - @Override - public Object serialize(Boolean value) { - return value; - } + @Override + public Object serialize(Boolean value) { + return value; + } - @Override - public Boolean deserialize(Object serialized) { - return (Boolean) serialized; - } + @Override + public Boolean deserialize(Object serialized) { + return (Boolean) serialized; + } - @Override - public Boolean parse(Player player, String userInput) { + @Override + public Boolean parse(Player player, String userInput) { if (userInput.equalsIgnoreCase("true") || userInput.equalsIgnoreCase("yes") || userInput.equalsIgnoreCase("on") || userInput.equalsIgnoreCase("1")) { @@ -39,6 +39,6 @@ public class BooleanFlag extends AbstractFlag { } else { return null; } - } + } } \ No newline at end of file diff --git a/api/src/main/java/org/codemc/worldguardwrapper/flags/DoubleFlag.java b/api/src/main/java/org/codemc/worldguardwrapper/flags/DoubleFlag.java index dcaa0e2..7d12a93 100644 --- a/api/src/main/java/org/codemc/worldguardwrapper/flags/DoubleFlag.java +++ b/api/src/main/java/org/codemc/worldguardwrapper/flags/DoubleFlag.java @@ -8,31 +8,31 @@ import org.codemc.worldguardwrapper.implementation.AbstractFlag; */ public class DoubleFlag extends AbstractFlag { - public DoubleFlag(String name) { - this(name, 0d); - } + public DoubleFlag(String name) { + this(name, 0d); + } public DoubleFlag(String name, double defaultValue) { super(name, double.class, defaultValue); } - @Override - public Object serialize(Double value) { - return value; - } + @Override + public Object serialize(Double value) { + return value; + } - @Override - public Double deserialize(Object serialized) { - if (serialized instanceof Number) { + @Override + public Double deserialize(Object serialized) { + if (serialized instanceof Number) { return ((Number) serialized).doubleValue(); } else { return null; } - } + } - @Override - public Double parse(Player player, String userInput) { - return Double.parseDouble(userInput); - } + @Override + public Double parse(Player player, String userInput) { + return Double.parseDouble(userInput); + } } \ No newline at end of file diff --git a/api/src/main/java/org/codemc/worldguardwrapper/flags/IntegerFlag.java b/api/src/main/java/org/codemc/worldguardwrapper/flags/IntegerFlag.java index 6cb92a2..56709bf 100644 --- a/api/src/main/java/org/codemc/worldguardwrapper/flags/IntegerFlag.java +++ b/api/src/main/java/org/codemc/worldguardwrapper/flags/IntegerFlag.java @@ -8,31 +8,31 @@ import org.codemc.worldguardwrapper.implementation.AbstractFlag; */ public class IntegerFlag extends AbstractFlag { - public IntegerFlag(String name) { - this(name, 0); - } + public IntegerFlag(String name) { + this(name, 0); + } public IntegerFlag(String name, int defaultValue) { super(name, int.class, defaultValue); } - @Override - public Object serialize(Integer value) { - return value; - } + @Override + public Object serialize(Integer value) { + return value; + } - @Override - public Integer deserialize(Object serialized) { - if (serialized instanceof Number) { + @Override + public Integer deserialize(Object serialized) { + if (serialized instanceof Number) { return ((Number) serialized).intValue(); } else { return null; } - } + } - @Override - public Integer parse(Player player, String userInput) { - return Integer.parseInt(userInput); - } + @Override + public Integer parse(Player player, String userInput) { + return Integer.parseInt(userInput); + } } \ No newline at end of file diff --git a/api/src/main/java/org/codemc/worldguardwrapper/flags/StringFlag.java b/api/src/main/java/org/codemc/worldguardwrapper/flags/StringFlag.java index c324a1b..b4b8038 100644 --- a/api/src/main/java/org/codemc/worldguardwrapper/flags/StringFlag.java +++ b/api/src/main/java/org/codemc/worldguardwrapper/flags/StringFlag.java @@ -16,19 +16,19 @@ public class StringFlag extends AbstractFlag { super(name, String.class, defaultValue); } - @Override - public Object serialize(String value) { - return value; - } + @Override + public Object serialize(String value) { + return value; + } - @Override - public String deserialize(Object serialized) { - return (String) serialized; - } + @Override + public String deserialize(Object serialized) { + return (String) serialized; + } - @Override - public String parse(Player player, String userInput) { - return userInput; - } + @Override + public String parse(Player player, String userInput) { + return userInput; + } } \ No newline at end of file