Skip to content

Commit

Permalink
move EnumUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
squito committed Apr 27, 2015
1 parent d2bde77 commit 39ac29c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.apache.spark;

import org.apache.spark.status.api.EnumUtil;
import org.apache.spark.util.EnumUtil;

public enum JobExecutionStatus {
RUNNING,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.apache.spark.status.api.v1;

import org.apache.spark.status.api.EnumUtil;
import org.apache.spark.util.EnumUtil;

public enum ApplicationStatus {
COMPLETED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.apache.spark.status.api.v1;

import org.apache.spark.status.api.EnumUtil;
import org.apache.spark.util.EnumUtil;

public enum StageStatus {
Active,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.apache.spark.status.api.v1;

import org.apache.spark.status.api.EnumUtil;
import org.apache.spark.util.EnumUtil;

import java.util.HashSet;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.spark.status.api;
package org.apache.spark.util;

import com.google.common.base.Joiner;

import java.util.Arrays;

public class EnumUtil {
public static <E extends Enum<E>> E parseIgnoreCase(Class<E> clz, String str) {
E[] constants = clz.getEnumConstants();
Expand Down

0 comments on commit 39ac29c

Please sign in to comment.