From a2d703334a806729b1fd5c610f260bea1dc173c5 Mon Sep 17 00:00:00 2001 From: Nirothipan Date: Wed, 21 Jun 2017 17:34:20 +0530 Subject: [PATCH] reformatting code --- .../org.carbon.android.emulator/Constants.java | 2 +- .../org.carbon.android.emulator/TryIt.java | 1 + .../TryItEmulator.java | 18 +++++++++--------- .../pom.xml | 8 +++++--- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/Constants.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/Constants.java index 5928ced496..e1ad6c6302 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/Constants.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/Constants.java @@ -44,7 +44,7 @@ class Constants { static final String DOWNLOADED_BUILD_TOOL_NAME = "downloaded.build.tool.name"; static final String BUILD_TOOLS_VERSION = "build.tool.version"; static final String DOWNLOADED_PLATFORM_NAME = "downloaded.platform.name"; - static final String TARGET_VERSION = "target.version"; + static final String TARGET_VERSION = "target.version"; static final String OS_TARGET = "os.target"; // WSO2 AVD specific variables static final String WSO2_AVD_NAME = "WSO2_AVD"; diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java index fa9e7316f8..79edf52d9c 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java @@ -113,6 +113,7 @@ public class TryIt { /** * This method is called when then is an error in getting system properties + * * @param error - system property name */ private void sysPropertyError(String error) { diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryItEmulator.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryItEmulator.java index 9d910104f8..d4ddd22652 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryItEmulator.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryItEmulator.java @@ -57,15 +57,15 @@ public class TryItEmulator implements Runnable { System.out.println("Error in starting " + deviceId); e.printStackTrace(); } finally { - try { - if (reader != null){ - reader.close(); - } - if (writer != null) { - writer.close(); - } - } catch (IOException ignored) { - // + try { + if (reader != null) { + reader.close(); + } + if (writer != null) { + writer.close(); + } + } catch (IOException ignored) { + // } } System.exit(0); diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/pom.xml b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/pom.xml index 6566732ac8..0b49fb1d3f 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/pom.xml +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/pom.xml @@ -18,7 +18,8 @@ ~ under the License. --> - + android-plugin @@ -52,7 +53,8 @@ org.wso2.carbon.device.mgt.mobile.android.emulator ${project.version} true - ${project.basedir}/src/main/resources/android-tryit/ + ${project.basedir}/src/main/resources/android-tryit/ + JavaApp.jar @@ -68,7 +70,7 @@ process-resources - +