Permalink
Browse files

Formatting: Removed trailing whitespaces/tabs.

Removed trailing whitespaces and tabs.
  • Loading branch information...
Pieter12345 committed Apr 30, 2018
1 parent 232db3a commit 68d332684edeb26eed643da35e6522c194576efb
Showing with 138 additions and 139 deletions.
  1. +2 −2 src/main/java/com/laytonsmith/PureUtilities/ArgumentParser.java
  2. +1 −1 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/ClassDiscoveryCache.java
  3. +1 −1 src/main/java/com/laytonsmith/PureUtilities/Common/WinRegistry.java
  4. +1 −1 src/main/java/com/laytonsmith/PureUtilities/HeapDumper.java
  5. +1 −1 src/main/java/com/laytonsmith/PureUtilities/ZipMaker.java
  6. +2 −2 src/main/java/com/laytonsmith/PureUtilities/rParser.java
  7. +5 −5 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCBeaconInventory.java
  8. +13 −13 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCBrewerInventory.java
  9. +9 −9 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCFurnaceInventory.java
  10. +9 −9 src/main/java/com/laytonsmith/abstraction/bukkit/blocks/BukkitMCBeacon.java
  11. +7 −7 src/main/java/com/laytonsmith/abstraction/bukkit/blocks/BukkitMCBrewingStand.java
  12. +3 −3 src/main/java/com/laytonsmith/abstraction/bukkit/blocks/BukkitMCChest.java
  13. +4 −4 src/main/java/com/laytonsmith/abstraction/bukkit/blocks/BukkitMCDropper.java
  14. +7 −7 src/main/java/com/laytonsmith/abstraction/bukkit/blocks/BukkitMCFurnace.java
  15. +3 −3 src/main/java/com/laytonsmith/abstraction/bukkit/blocks/BukkitMCHopper.java
  16. +2 −2 src/main/java/com/laytonsmith/abstraction/bukkit/events/BukkitServerEvents.java
  17. +3 −3 src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitPlayerListener.java
  18. +1 −1 src/main/java/com/laytonsmith/commandhelper/BukkitDirtyRegisteredListener.java
  19. +1 −1 src/main/java/com/laytonsmith/core/CHLog.java
  20. +3 −3 src/main/java/com/laytonsmith/core/MethodScriptCompiler.java
  21. +5 −5 src/main/java/com/laytonsmith/core/ParseTree.java
  22. +2 −2 src/main/java/com/laytonsmith/core/Static.java
  23. +4 −4 src/main/java/com/laytonsmith/core/compiler/FileOptions.java
  24. +1 −1 src/main/java/com/laytonsmith/core/events/EventBuilder.java
  25. +1 −1 src/main/java/com/laytonsmith/core/federation/FederationCommunication.java
  26. +0 −1 src/main/java/com/laytonsmith/core/functions/Federation.java
  27. +5 −5 src/main/java/com/laytonsmith/core/functions/Redis.java
  28. +6 −6 src/main/java/com/laytonsmith/core/functions/Routines.java
  29. +3 −3 src/main/java/com/laytonsmith/persistence/DataSourceFilter.java
  30. +1 −1 src/main/java/com/laytonsmith/persistence/DataSourceModel.java
  31. +1 −1 src/main/java/com/laytonsmith/persistence/StringSerializableDataSource.java
  32. +1 −1 src/main/java/com/laytonsmith/tools/UILauncher.java
  33. +1 −1 src/main/java/com/laytonsmith/tools/docgen/DocGenTemplates.java
  34. +1 −1 src/main/java/com/laytonsmith/tools/docgen/DocGenUIHandler.java
  35. +1 −1 src/main/java/com/laytonsmith/tools/pnviewer/ConfigurationLoaderDialog.java
  36. +1 −1 src/main/java/com/laytonsmith/tools/pnviewer/ManageBookmarksDialog.java
  37. +1 −1 src/test/java/com/laytonsmith/PureUtilities/ZipReaderTest.java
  38. +6 −6 src/test/java/com/laytonsmith/core/MethodScriptCompilerTest.java
  39. +1 −1 src/test/java/com/laytonsmith/core/PrefsTest.java
  40. +5 −5 src/test/java/com/laytonsmith/core/TypeHintingTest.java
  41. +6 −6 src/test/java/com/laytonsmith/core/events/GeneralTest.java
  42. +2 −2 src/test/java/com/laytonsmith/core/functions/MinecraftTest.java
  43. +2 −2 src/test/java/com/laytonsmith/core/functions/PermissionsTest.java
  44. +3 −3 src/test/java/com/laytonsmith/core/functions/bash/BashCompilerBasicTest.java
@@ -1013,7 +1013,7 @@ private ArgumentParserResults parse(List<String> args) throws ValidationExceptio
}
}
}
//These are arguments that are not flags.
//These are arguments that are not flags.
List<String> looseArgs = new ArrayList<>();
Argument lastArg = null;
for (String arg : args) {
@@ -1100,7 +1100,7 @@ private Argument validateArgument(Argument arg, List<String> looseArgs) throws V
}
Argument finishedArgument = new Argument(arg);
if (arg.isSingle()) {
//Just the first loose argument is associated with this argument,
//Just the first loose argument is associated with this argument,
//the rest (if any) belong to the default loose argument list.
//Of course, looseArgs could be empty, in which case we won't add anything to the list.
if (looseArgs.size() > 0) {
@@ -95,7 +95,7 @@ public ClassDiscoveryURLCache getURLCache(URL fromClassLocation) {
if(cacheOutputName.exists()) {
//Cool, already exists, so we'll just return this.
//Note that we write the data out as a zip, since it is
//huge otherwise, and compresses quite well, so we have
//huge otherwise, and compresses quite well, so we have
//to read it in as a zip now.
ZipReader cacheReader = new ZipReader(new File(cacheOutputName, "data"));
return new ClassDiscoveryURLCache(fromClassLocation, cacheReader.getInputStream());
@@ -293,7 +293,7 @@ private static String readString(Preferences root, int hkey, String key, String
int[] info = (int[]) regQueryInfoKey.invoke(root,
new Object[]{new Integer(handles[0])});
int count = info[0]; // count
int count = info[0]; // count
int maxlen = info[3]; // value length max
for(int index = 0; index < count; index++) {
byte[] name = (byte[]) regEnumValue.invoke(root, new Object[]{
@@ -9,7 +9,7 @@
private static final String HOTSPOT_BEAN_NAME
= "com.sun.management:type=HotSpotDiagnostic";
// field to store the hotspot diagnostic MBean
// field to store the hotspot diagnostic MBean
private static volatile HotSpotDiagnosticMXBean hotspotMBean;
/**
@@ -81,7 +81,7 @@ private static void MakeZip(Set<File> files, File output, File base, String topL
for(File f : files) {
FileInputStream in = new FileInputStream(new File(base, f.getPath()));
// Add ZIP entry to output stream.
// Add ZIP entry to output stream.
out.putNextEntry(new ZipEntry(topLevel + GetUnabsoluteFile(base, f).getPath()));
// Transfer bytes from the file to the ZIP file
@@ -28,7 +28,7 @@ public static String lastColor(String findColor) {
}
}
/*
/*
*
*/
public static String combineSplit(int beginHere, String[] split, String seperator) {
@@ -187,7 +187,7 @@ private static int charLength(char x) {
//=====================================================================
//Function: colorChange
//Input: char colour: The color code to find the color for
//Output: String: The color that the code identified
//Output: String: The color that the code identified
//Use: Finds a color giving a color code
//=====================================================================
public static String colorChange(char colour) {
@@ -10,24 +10,24 @@
import com.laytonsmith.abstraction.bukkit.blocks.BukkitMCBeacon;
public class BukkitMCBeaconInventory extends BukkitMCInventory implements MCBeaconInventory {
private BeaconInventory inv;
public BukkitMCBeaconInventory(BeaconInventory inv) {
super(inv);
this.inv = inv;
}
@Override
public MCItemStack getItem() {
return new BukkitMCItemStack(this.inv.getItem());
}
@Override
public void setItem(MCItemStack stack) {
this.inv.setItem((ItemStack) stack.getHandle());
}
@Override
public MCBeacon getHolder() {
return new BukkitMCBeacon((Beacon) this.inv.getHolder());
@@ -10,64 +10,64 @@
import com.laytonsmith.abstraction.bukkit.blocks.BukkitMCBrewingStand;
public class BukkitMCBrewerInventory extends BukkitMCInventory implements MCBrewerInventory {
private BrewerInventory inv;
public BukkitMCBrewerInventory(BrewerInventory inv) {
super(inv);
this.inv = inv;
}
@Override
public MCItemStack getFuel() {
return new BukkitMCItemStack(this.inv.getFuel());
}
@Override
public MCItemStack getIngredient() {
return new BukkitMCItemStack(this.inv.getIngredient());
}
@Override
public MCItemStack getLeftBottle() {
return new BukkitMCItemStack(this.inv.getItem(0));
}
@Override
public MCItemStack getMiddleBottle() {
return new BukkitMCItemStack(this.inv.getItem(1));
}
@Override
public MCItemStack getRightBottle() {
return new BukkitMCItemStack(this.inv.getItem(2));
}
@Override
public void setFuel(MCItemStack stack) {
this.inv.setFuel((ItemStack) stack.getHandle());
}
@Override
public void setIngredient(MCItemStack stack) {
this.inv.setIngredient((ItemStack) stack.getHandle());
}
@Override
public void setLeftBottle(MCItemStack stack) {
this.inv.setItem(0, (ItemStack) stack.getHandle());
}
@Override
public void setMiddleBottle(MCItemStack stack) {
this.inv.setItem(1, (ItemStack) stack.getHandle());
}
@Override
public void setRightBottle(MCItemStack stack) {
this.inv.setItem(2, (ItemStack) stack.getHandle());
}
@Override
public MCBrewingStand getHolder() {
return new BukkitMCBrewingStand((BrewingStand) this.inv.getHolder());
@@ -9,44 +9,44 @@
import com.laytonsmith.abstraction.bukkit.blocks.BukkitMCFurnace;
public class BukkitMCFurnaceInventory extends BukkitMCInventory implements MCFurnaceInventory {
private FurnaceInventory inv;
public BukkitMCFurnaceInventory(FurnaceInventory inv) {
super(inv);
this.inv = inv;
}
@Override
public MCItemStack getResult() {
return new BukkitMCItemStack(this.inv.getResult());
}
@Override
public MCItemStack getFuel() {
return new BukkitMCItemStack(this.inv.getFuel());
}
@Override
public MCItemStack getSmelting() {
return new BukkitMCItemStack(this.inv.getSmelting());
}
@Override
public void setFuel(MCItemStack stack) {
this.inv.setFuel((ItemStack) stack.getHandle());
}
@Override
public void setResult(MCItemStack stack) {
this.inv.setResult((ItemStack) stack.getHandle());
}
@Override
public void setSmelting(MCItemStack stack) {
this.inv.setSmelting((ItemStack) stack.getHandle());
}
@Override
public MCFurnace getHolder() {
return new BukkitMCFurnace(this.inv.getHolder());
@@ -13,19 +13,19 @@
import org.bukkit.entity.LivingEntity;
public class BukkitMCBeacon extends BukkitMCBlockState implements MCBeacon {
private Beacon beacon;
public BukkitMCBeacon(Beacon block) {
super(block);
this.beacon = block;
}
@Override
public MCBeaconInventory getInventory() {
return new BukkitMCBeaconInventory(this.beacon.getInventory());
}
@Override
public Collection<MCLivingEntity> getEntitiesInRange() {
HashSet<MCLivingEntity> ret = new HashSet<>();
@@ -34,29 +34,29 @@ public MCBeaconInventory getInventory() {
}
return ret;
}
// @Override
// public MCPotionEffect getPrimaryEffect() {
// // TODO Implement.
// return null;
// }
//
//
// @Override
// public MCPotionEffect getSecondaryEffect() {
// // TODO Implement.
// return null;
// }
@Override
public int getTier() {
return this.beacon.getTier();
}
// @Override
// public void setPrimaryEffect(MCPotionEffect effect) {
// this.beacon.setPrimaryEffect(effect.getHandle());
// }
//
//
// @Override
// public void setSecondaryEffect(MCPotionEffect effect) {
// this.beacon.setSecondaryEffect(effect.getHandle());
@@ -7,34 +7,34 @@
import org.bukkit.block.BrewingStand;
public class BukkitMCBrewingStand extends BukkitMCBlockState implements MCBrewingStand {
private BrewingStand bs;
public BukkitMCBrewingStand(BrewingStand block) {
super(block);
this.bs = block;
}
@Override
public MCBrewerInventory getInventory() {
return new BukkitMCBrewerInventory(this.bs.getInventory());
}
@Override
public int getBrewingTime() {
return this.bs.getBrewingTime();
}
@Override
public int getFuelLevel() {
return this.bs.getFuelLevel();
}
@Override
public void setBrewingTime(int brewTime) {
this.bs.setBrewingTime(brewTime);
}
@Override
public void setFuelLevel(int level) {
this.bs.setFuelLevel(level);
@@ -7,14 +7,14 @@
import org.bukkit.block.Chest;
public class BukkitMCChest extends BukkitMCBlockState implements MCChest {
private Chest chest;
public BukkitMCChest(Chest block) {
super(block);
this.chest = block;
}
@Override
public MCInventory getInventory() {
return new BukkitMCInventory(this.chest.getInventory());
@@ -7,19 +7,19 @@
import org.bukkit.block.Dropper;
public class BukkitMCDropper extends BukkitMCBlockState implements MCDropper {
private Dropper dropper;
public BukkitMCDropper(Dropper block) {
super(block);
this.dropper = block;
}
@Override
public MCInventory getInventory() {
return new BukkitMCInventory(this.dropper.getInventory());
}
@Override
public void drop() {
this.dropper.drop();
Oops, something went wrong.

0 comments on commit 68d3326

Please sign in to comment.