Skip to content

Commit 3edb203

Browse files
committed
Small fixes
1 parent 53f9584 commit 3edb203

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/main/java/com/laytonsmith/core/constructs/CMutablePrimitive.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void set(Mixed index, Mixed c, Target t) {
6363
}
6464

6565
@Override
66-
public void set(Mixed index, Mixed c, Target t, com.laytonsmith.core.environments.Environment env) {
66+
public void set(Mixed index, Mixed c, Target t, Environment env) {
6767
throw new CRECastException("mutable_primitives cannot have values set in them", t);
6868
}
6969

@@ -93,7 +93,7 @@ public Mixed get(Mixed index, Target t) {
9393
}
9494

9595
@Override
96-
public Mixed get(Mixed index, Target t, com.laytonsmith.core.environments.Environment env) {
96+
public Mixed get(Mixed index, Target t, Environment env) {
9797
return value;
9898
}
9999

@@ -125,7 +125,7 @@ public long size() {
125125
}
126126

127127
@Override
128-
public long size(com.laytonsmith.core.environments.Environment env) {
128+
public long size(Environment env) {
129129
if(value.isInstanceOf(Sizeable.TYPE)) {
130130
return ArgumentValidation.getObject(value, Target.UNKNOWN, Sizeable.class).size(env);
131131
} else {

src/main/java/com/laytonsmith/core/constructs/CSlice.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void set(Mixed index, Mixed c, Target t) {
123123
}
124124

125125
@Override
126-
public void set(Mixed index, Mixed c, Target t, com.laytonsmith.core.environments.Environment env) {
126+
public void set(Mixed index, Mixed c, Target t, Environment env) {
127127
throw new CRECastException("CSlices cannot set values", t);
128128
}
129129

@@ -135,7 +135,7 @@ public Mixed get(Mixed index, Target t) {
135135
}
136136

137137
@Override
138-
public Mixed get(Mixed index, Target t, com.laytonsmith.core.environments.Environment env) {
138+
public Mixed get(Mixed index, Target t, Environment env) {
139139
long i = ArgumentValidation.getInt(index, t, env);
140140
if(i > max) {
141141
throw new CRERangeException("Index out of bounds. Index: " + i + " Size: " + max, t);
@@ -151,7 +151,7 @@ public Set<Mixed> keySet() {
151151
}
152152

153153
@Override
154-
public Set<Mixed> keySet(com.laytonsmith.core.environments.Environment env) {
154+
public Set<Mixed> keySet(Environment env) {
155155
// To keep our memory footprint down, we create a "fake" keyset here, which doesn't
156156
// require actually creating an entire Set. Removing items from the set isn't supported,
157157
// but all iteration options are.
@@ -195,7 +195,7 @@ public long size() {
195195
}
196196

197197
@Override
198-
public long size(com.laytonsmith.core.environments.Environment env) {
198+
public long size(Environment env) {
199199
return size;
200200
}
201201

src/main/java/com/laytonsmith/core/constructs/Construct.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ protected String getQuote() {
503503
@Deprecated
504504
@Override
505505
public CClassType typeof() {
506-
return typeof((Environment) null);
506+
return typeof(null);
507507
}
508508

509509
/**

src/main/java/com/laytonsmith/core/exceptions/CRE/AbstractCREException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public boolean isInstanceOf(CClassType type, LeftHandGenericUse lhsGenericParame
352352
@Deprecated
353353
@Override
354354
public CClassType typeof() {
355-
return typeof((Environment) null);
355+
return typeof(null);
356356
}
357357

358358
@Override

src/main/java/com/laytonsmith/core/natives/interfaces/AbstractMixed.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public boolean isInstanceOf(Class<? extends Mixed> type) {
9696
@Deprecated
9797
@Override
9898
public CClassType typeof() {
99-
return typeof((Environment) null);
99+
return typeof(null);
100100
}
101101

102102
@Override

src/main/java/com/laytonsmith/core/natives/interfaces/AbstractMixedInterfaceRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public CClassType getContainingClass() {
121121
@Deprecated
122122
@Override
123123
public final CClassType typeof() {
124-
return typeof((Environment) null);
124+
return typeof(null);
125125
}
126126

127127
@Override

src/main/java/com/laytonsmith/core/natives/interfaces/MEnumType.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public boolean isInstanceOf(CClassType type, LeftHandGenericUse lhsGenericParame
161161
@Deprecated
162162
@Override
163163
public CClassType typeof() {
164-
return typeof((Environment) null);
164+
return typeof(null);
165165
}
166166

167167
@Override
@@ -267,7 +267,7 @@ public String toString() {
267267
@Deprecated
268268
@Override
269269
public CClassType typeof() {
270-
return typeof((Environment) null);
270+
return typeof(null);
271271
}
272272

273273
@Override
@@ -492,7 +492,7 @@ public boolean isInstanceOf(CClassType type, LeftHandGenericUse lhsGenericParame
492492
@Deprecated
493493
@Override
494494
public CClassType typeof() {
495-
return typeof((Environment) null);
495+
return typeof(null);
496496
}
497497

498498
@Override

src/main/java/com/laytonsmith/core/objects/UserObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public boolean isInstanceOf(CClassType type, LeftHandGenericUse lhsGenericParame
172172
@Deprecated
173173
@Override
174174
public CClassType typeof() {
175-
return typeof((Environment) null);
175+
return typeof(null);
176176
}
177177

178178
@Override

0 commit comments

Comments
 (0)