Fix typos

This commit is contained in:
Pierre Grimaud
2020-04-29 19:36:34 +02:00
parent fda7d00747
commit f9a40599fb
11 changed files with 20 additions and 20 deletions

View File

@ -167,7 +167,7 @@ public abstract class QueueHandler implements Trimable, Runnable {
return sync(call, syncTasks);
}
// Lower priorty sync task (runs only when there are no other tasks)
// Lower priority sync task (runs only when there are no other tasks)
public <T> Future<T> syncWhenFree(Runnable run, T value) {
return sync(run, value, syncWhenFree);
}

View File

@ -61,7 +61,7 @@ public abstract class ReadOnlyClipboard extends SimpleClipboard {
if (current.getWorld().equals(world)) {
return current;
}
throw new UnsupportedOperationException("TODO: Cannot lazy copy accross worlds (bug jesse)");
throw new UnsupportedOperationException("TODO: Cannot lazy copy across worlds (bug jesse)");
}
throw new IllegalStateException("No world");
};

View File

@ -100,7 +100,7 @@ public class SparseBitSet implements Cloneable, Serializable
bits (setting, flipping, clearing, etc.) do not attempt to normalize the
set, in the interests of speed. However, when a set is scanned as the
resultant set of some operation, then, in most cases, the set will be
normalized--the exception being level2 areas that are not completly scanned
normalized--the exception being level2 areas that are not completely scanned
in a particular pass.
The sizes of the blocks and areas has been the result of some investigation
@ -338,8 +338,8 @@ public class SparseBitSet implements Cloneable, Serializable
* needed actions to initialise the bit set.
* <p>
* The capacity is taken to be a <i>suggestion</i> for a size of the bit set,
* in bits. An appropiate table size (a power of two) is then determined and
* used. The size will be grown as needed to accomodate any bits addressed
* in bits. An appropriate table size (a power of two) is then determined and
* used. The size will be grown as needed to accommodate any bits addressed
* during the use of the bit set.
*
* @param capacity a size in terms of bits
@ -530,7 +530,7 @@ public class SparseBitSet implements Cloneable, Serializable
}
/**
* Creates a bit set from thie first <code>SparseBitSet</code> whose
* Creates a bit set from the first <code>SparseBitSet</code> whose
* corresponding bits are cleared by the set bits of the second
* <code>SparseBitSet</code>. The resulting bit set is created so that a bit
* in it has the value <code>true</code> if and only if the corresponding bit
@ -1669,7 +1669,7 @@ public class SparseBitSet implements Cloneable, Serializable
}
/**
* Intializes all the additional objects required for correct operation.
* Initializes all the additional objects required for correct operation.
*
* @since 1.6
*/

View File

@ -513,11 +513,11 @@ public class MainUtil {
}
try (FileInputStream fIn = new FileInputStream(sourceFile); FileChannel source = fIn.getChannel();
FileOutputStream fOut = new FileOutputStream(destFile); FileChannel destination = fOut.getChannel()) {
long transfered = 0;
long transferred = 0;
long bytes = source.size();
while (transfered < bytes) {
transfered += destination.transferFrom(source, 0, source.size());
destination.position(transfered);
while (transferred < bytes) {
transferred += destination.transferFrom(source, 0, source.size());
destination.position(transferred);
}
}
return destFile;

View File

@ -131,13 +131,13 @@ public class ReflectionUtils {
}
}
public static <T> T callConstructor(Constructor<T> constructor, Object... paramaters) {
public static <T> T callConstructor(Constructor<T> constructor, Object... parameters) {
if (constructor == null) {
throw new RuntimeException("No such constructor");
}
constructor.setAccessible(true);
try {
return constructor.newInstance(paramaters);
return constructor.newInstance(parameters);
} catch (InvocationTargetException ex) {
throw new RuntimeException(ex.getCause());
} catch (Exception ex) {

View File

@ -37,7 +37,7 @@ public class ReflectionUtils9 {
// 3. build new enum
T newValue = (T) makeEnum(enumType, // The target enum class
enumName, // THE NEW ENUM INSTANCE TO BE DYNAMICALLY ADDED
values.size()); // can be used to pass values to the enum constuctor
values.size()); // can be used to pass values to the enum constructor
// 4. add new value
values.add(newValue);