Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Sep 21, 2015
1 parent a9ab145 commit 0c85a46
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions plugins/devkit/src/projectRoots/Sandbox.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,11 +17,14 @@

import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.projectRoots.*;
import com.intellij.openapi.projectRoots.ProjectJdkTable;
import com.intellij.openapi.projectRoots.Sdk;
import com.intellij.openapi.projectRoots.SdkModel;
import com.intellij.openapi.projectRoots.ValidatableSdkAdditionalData;
import com.intellij.openapi.util.DefaultJDOMExternalizer;
import com.intellij.openapi.util.InvalidDataException;
import com.intellij.openapi.util.JDOMExternalizable;
import com.intellij.openapi.util.WriteExternalException;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.LocalFileSystem;
import org.jdom.Element;
import org.jetbrains.annotations.NonNls;
Expand All @@ -32,7 +35,7 @@
* User: anna
* Date: Nov 22, 2004
*/
public class Sandbox implements ValidatableSdkAdditionalData, JDOMExternalizable{
public class Sandbox implements ValidatableSdkAdditionalData {
private static final Logger LOG = Logger.getInstance("#org.jetbrains.idea.devkit.projectRoots.Sandbox");

@SuppressWarnings({"WeakerAccess"})
Expand Down Expand Up @@ -68,7 +71,7 @@ public Object clone() throws CloneNotSupportedException {
}

public void checkValid(SdkModel sdkModel) throws ConfigurationException {
if (mySandboxHome == null || mySandboxHome.length() == 0 || getJavaSdk() == null){
if (StringUtil.isEmpty(mySandboxHome) || getJavaSdk() == null) {
throw new ConfigurationException(DevKitBundle.message("sandbox.specification"));
}
}
Expand Down

0 comments on commit 0c85a46

Please sign in to comment.