some minor edit in tiles

This commit is contained in:
Ondřej Hruška
2014-04-19 03:57:42 +02:00
parent b18b248762
commit d18ff99fa8
5 changed files with 39 additions and 6 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
package mightypork.util.math.color;
import java.util.EmptyStackException;
import java.util.Stack;
import mightypork.util.annotations.FactoryMethod;
@@ -216,7 +217,7 @@ public abstract class Color {
* Remove a pushed alpha multiplier from the stack. If there's no remaining
* multiplier on the stack, an exception is raised.
*
* @throws IllegalStateException if the stack is empty
* @throws EmptyStackException if the stack is empty
*/
public static void popAlpha()
{
@@ -225,7 +226,7 @@ public abstract class Color {
}
if (alphaStack.isEmpty()) {
throw new IllegalStateException("Global alpha stack underflow.");
throw new EmptyStackException();
}
alphaStack.pop();