util: Access levels

This commit is contained in:
sdburns1998
2019-07-08 17:23:31 +02:00
parent 330d3d9cd5
commit 33a6824ca6
5 changed files with 13 additions and 13 deletions

View File

@@ -36,7 +36,7 @@ public class PvPUtil
* @param point the point in the world to get the wilderness level for
* @return the int representing the wilderness level
*/
public static int getWildernessLevelFrom(WorldPoint point)
private static int getWildernessLevelFrom(WorldPoint point)
{
int y = point.getY();

View File

@@ -30,12 +30,12 @@ import org.objectweb.asm.tree.AnnotationNode;
import org.objectweb.asm.tree.FieldNode;
import org.objectweb.asm.tree.MethodNode;
public class RefUtils implements Opcodes
class RefUtils implements Opcodes
{
private static final String TYPE_PREFIX = "us/runelitepl/mixinprocessor/annotations/";
public static boolean isReturn(int opcode, boolean checkType)
private static boolean isReturn(int opcode, boolean checkType)
{
return (opcode == RETURN && !checkType) || opcode == IRETURN || opcode == LRETURN || opcode == DRETURN ||
opcode == ARETURN || opcode == FRETURN;
@@ -76,7 +76,7 @@ public class RefUtils implements Opcodes
return false;
}
public static String makeAnnotationDesc(String annot)
private static String makeAnnotationDesc(String annot)
{
return "L" + TYPE_PREFIX + annot + ";";
}

View File

@@ -76,7 +76,7 @@ public class SwingUtil
* Sets some sensible defaults for swing.
* IMPORTANT! Needs to be called before main frame creation
*/
public static void setupDefaults()
private static void setupDefaults()
{
// Force heavy-weight popups/tooltips.
// Prevents them from being obscured by the game applet.
@@ -117,7 +117,7 @@ public class SwingUtil
*
* @param laf the swing look and feel
*/
public static void setTheme(@Nonnull final LookAndFeel laf)
private static void setTheme(@Nonnull final LookAndFeel laf)
{
try
{
@@ -135,7 +135,7 @@ public class SwingUtil
*
* @param font the new font to use
*/
public static void setFont(@Nonnull final Font font)
private static void setFont(@Nonnull final Font font)
{
final FontUIResource f = new FontUIResource(font);
final Enumeration keys = UIManager.getDefaults().keys();

View File

@@ -77,12 +77,12 @@ public enum WildernessLocation
this.worldArea = new WorldArea(location.x, location.y, location.width, location.height, plane);
}
public static class Location
static class Location
{
public final int x;
public final int y;
public final int width;
public final int height;
final int x;
final int y;
final int width;
final int height;
Location(int x, int y, int x1, int y1)
{

View File

@@ -30,7 +30,7 @@ import com.sun.jna.platform.win32.WinDef;
import java.util.Arrays;
import java.util.List;
public class IcmpEchoReply extends Structure
class IcmpEchoReply extends Structure
{
private static final int IP_OPTION_INFO_SIZE = 1 + 1 + 1 + 1 + (Pointer.SIZE == 8 ? 12 : 4); // on 64bit vms add 4 byte padding
public static final int SIZE = 4 + 4 + 4 + 2 + 2 + Pointer.SIZE + IP_OPTION_INFO_SIZE;