id
stringlengths
36
36
text
stringlengths
1
1.25M
ab53e639-371a-4eb4-a3ef-4e0739caa1d9
public ConfigurationException(String errMsg, Throwable cause) { super(errMsg, cause); }
61bc4c21-b750-4efa-9a1a-65d73d7bd740
public Collection<ShowAllEmployeesBasicInfo> getAllEmployeesBasicInformation() throws SQLException { loadDriver(); try (Connection con = getConnection()) { Statement basicEmployeeInformation = con.createStatement(); ResultSet employeesBasicInfo = basicEmployeeInformation .executeQuery(SQLUtils.showEmployeesAlphabeticallyQuery()); return buildModel(employeesBasicInfo); } }
73aedb4c-fbb9-4ea7-a243-8175e4e57465
private Collection<ShowAllEmployeesBasicInfo> buildModel(ResultSet rawInfo) throws SQLException { if (rawInfo == null) return null; Collection<ShowAllEmployeesBasicInfo> basicInfo = new ArrayList<>(); while (rawInfo.next()) { ShowAllEmployeesBasicInfo info = buildEmployeeInfo(rawInfo); basicInfo.add(info); } return basicInfo; }
f31cca78-5840-435e-9338-50258f617310
private ShowAllEmployeesBasicInfo buildEmployeeInfo(ResultSet rawInfo) throws SQLException { String name = rawInfo.getString("first_name"); String lastName = rawInfo.getString("last_name"); Date hiredOn = rawInfo.getDate("hire_date"); String gender = rawInfo.getString("gender"); return new ShowAllEmployeesBasicInfo(name, lastName, hiredOn, gender); }
a3b3f538-c8fc-4a93-8e34-5dc96693f99d
public static void main(String[] args) throws SQLException { ShowEmployeesAlphabeticallyOOP command = new ShowEmployeesAlphabeticallyOOP(); Collection<ShowAllEmployeesBasicInfo> allEmployeesBasicInformation = command .getAllEmployeesBasicInformation(); if (allEmployeesBasicInformation == null || allEmployeesBasicInformation.isEmpty()) { System.out .println("Unfortunatelly employee information is unavailable"); return; } for (ShowAllEmployeesBasicInfo employeeInfo : allEmployeesBasicInformation) { System.out.println(employeeInfo); } }
f25f88dc-66ac-4875-a1b3-ff3aafe3bc27
public static void main(String[] args) throws SQLException { try (Connection con = SQLUtils.getConnection()) { Statement showAllEmployees = con.createStatement(); ResultSet rawInfo = showAllEmployees.executeQuery(SQLUtils .showAllEmployeesQuery()); if (rawInfo != null) while (rawInfo.next()) { String name = rawInfo.getString("first_name"); String lastName = rawInfo.getString("last_name"); Date hiredOn = rawInfo.getDate("hire_date"); String gender = rawInfo.getString("gender"); System.out.printf("%s %s (%s) hired on : %s \n", name, lastName, gender, hiredOn.toString()); } } }
3f26f284-a5a0-49a3-b234-1bc19d5f9663
public static void main(String[] args) throws SQLException { try (Connection con = SQLUtils.getConnection()) { Statement showEmployeesNamesAndManagers = con.createStatement(); ResultSet rawInfo = showEmployeesNamesAndManagers .executeQuery(SQLUtils.showEmployeesNamesandManagersQuery()); if (rawInfo != null) while (rawInfo.next()) { String name = rawInfo.getString("first_name"); String lastName = rawInfo.getString("last_name"); String manager = rawInfo.getString("emp_no"); System.out.printf("%s %s %s \n", name, lastName, manager); } } }
6e126674-f707-4a4c-9a2a-35810f84b260
public static void main(String[] args) throws SQLException { try (Connection con = SQLUtils.getConnection()) { Statement showEmployeesNamesandDepartments = con.createStatement(); ResultSet rawInfo = showEmployeesNamesandDepartments .executeQuery(SQLUtils .showEmployeesNamesandDepartmentsQuery()); if (rawInfo != null) while (rawInfo.next()) { String name = rawInfo.getString("first_name"); String lastName = rawInfo.getString("last_name"); String department = rawInfo.getString("dept_name"); System.out .printf("%s %s %s \n", name, lastName, department); } } }
da22d312-3fb0-47b9-b966-8d794422548c
public static void main(String[] args) throws SQLException { try (Connection con = SQLUtils.getConnection()) { Statement ShowEmployeesAlphabetically = con.createStatement(); ResultSet rawInfo = ShowEmployeesAlphabetically .executeQuery(SQLUtils.showEmployeesAlphabeticallyQuery()); if (rawInfo != null) while (rawInfo.next()) { String name = rawInfo.getString("first_name"); String lastName = rawInfo.getString("last_name"); Date hiredOn = rawInfo.getDate("hire_date"); String gender = rawInfo.getString("gender"); System.out.printf("%s %s (%s) hired on : %s \n", name, lastName, gender, hiredOn.toString()); } } }
2358104c-4d46-4545-a0ae-319a194b1287
public static void main(String[] args) throws ClassNotFoundException, SQLException, FileNotFoundException, IOException { Class.forName("com.mysql.jdbc.Driver"); try (Connection connection = DriverManager.getConnection(getDBURL(), getDBUser(), getPassword())) { Statement statement = connection.createStatement(); ResultSet statementResult = statement.executeQuery(sql); while (statementResult.next()) { String title = statementResult.getString("awesomeName"); System.out.println(title); } } }
0c4525cf-80e4-49e5-9e0a-5858297324e2
public Collection<ManagerAdd> getAllEmployeesBasicInformation() throws SQLException { loadDriver(); try (Connection con = getConnection()) { Statement basicEmployeeInformation = con.createStatement(); ResultSet employeesBasicInfo = basicEmployeeInformation .executeQuery(SQLUtils .showEmployeesNamesandManagersOOPQuery()); return buildModel(employeesBasicInfo); } }
db9e3588-bb15-466b-a71c-1cc98991de6c
private Collection<ManagerAdd> buildModel(ResultSet rawInfo) throws SQLException { if (rawInfo == null) return null; Collection<ManagerAdd> basicInfo = new ArrayList<>(); while (rawInfo.next()) { ManagerAdd info = buildEmployeeInfo(rawInfo); basicInfo.add(info); } return basicInfo; }
c42feeeb-b8ad-4be0-b8a0-d1603e89b89e
private ManagerAdd buildEmployeeInfo(ResultSet rawInfo) throws SQLException { String name = rawInfo.getString("first_name"); String lastName = rawInfo.getString("last_name"); String manager = rawInfo.getString("emp_no"); return new ManagerAdd(name, lastName, manager); }
09040a9b-6994-4425-9c7e-e464aa57421c
public static void main(String[] args) throws SQLException { ShowEmployeesNamesandManagersOOP command = new ShowEmployeesNamesandManagersOOP(); Collection<ManagerAdd> allEmployeesBasicInformation = command .getAllEmployeesBasicInformation(); if (allEmployeesBasicInformation == null || allEmployeesBasicInformation.isEmpty()) { System.out .println("Unfortunatelly employee information is unavailable"); return; } for (ManagerAdd employeeInfo : allEmployeesBasicInformation) { System.out.println(employeeInfo); } }
f20782ef-70b4-4a26-9eeb-019e399eab6f
public Collection<DepartmentAdd> getAllEmployeesBasicInformation() throws SQLException { loadDriver(); try (Connection con = getConnection()) { Statement basicEmployeeInformation = con.createStatement(); ResultSet employeesBasicInfo = basicEmployeeInformation .executeQuery(SQLUtils .showEmployeesNamesandDepartmentsQuery()); return buildModel(employeesBasicInfo); } }
a041a363-32c8-4fea-9ecb-1b5d63569b66
private Collection<DepartmentAdd> buildModel(ResultSet rawInfo) throws SQLException { if (rawInfo == null) return null; Collection<DepartmentAdd> basicInfo = new ArrayList<>(); while (rawInfo.next()) { DepartmentAdd info = buildEmployeeInfo(rawInfo); basicInfo.add(info); } return basicInfo; }
4169c96d-b445-4d8b-b46e-b25c3c7e8054
private DepartmentAdd buildEmployeeInfo(ResultSet rawInfo) throws SQLException { String name = rawInfo.getString("first_name"); String lastName = rawInfo.getString("last_name"); String department = rawInfo.getString("dept_name"); return new DepartmentAdd(name, lastName, department); }
b97c1dd1-95be-4e17-8766-828d9a024b26
public static void main(String[] args) throws SQLException { ShowEmployeesNamesandDepartmentOOP command = new ShowEmployeesNamesandDepartmentOOP(); Collection<DepartmentAdd> allEmployeesBasicInformation = command .getAllEmployeesBasicInformation(); if (allEmployeesBasicInformation == null || allEmployeesBasicInformation.isEmpty()) { System.out .println("Unfortunatelly employee information is unavailable"); return; } for (DepartmentAdd employeeInfo : allEmployeesBasicInformation) { System.out.println(employeeInfo); } }
7b97c580-59a5-4a4a-82ca-344de23c450b
public Collection<ShowAllEmployeesBasicInfo> getAllEmployeesBasicInformation() throws SQLException { loadDriver(); try (Connection con = getConnection()) { Statement basicEmployeeInformation = con.createStatement(); ResultSet employeesBasicInfo = basicEmployeeInformation .executeQuery(SQLUtils.showAllEmployeesQuery()); return buildModel(employeesBasicInfo); } }
5eb1d856-0d28-4d56-8a43-516be4c8a90d
private Collection<ShowAllEmployeesBasicInfo> buildModel(ResultSet rawInfo) throws SQLException { if (rawInfo == null) return null; Collection<ShowAllEmployeesBasicInfo> basicInfo = new ArrayList<>(); while (rawInfo.next()) { ShowAllEmployeesBasicInfo info = buildEmployeeInfo(rawInfo); basicInfo.add(info); } return basicInfo; }
8e75f3c7-a0db-4da5-96b4-5d994dc3c2f8
private ShowAllEmployeesBasicInfo buildEmployeeInfo(ResultSet rawInfo) throws SQLException { String name = rawInfo.getString("first_name"); String lastName = rawInfo.getString("last_name"); Date hiredOn = rawInfo.getDate("hire_date"); String gender = rawInfo.getString("gender"); return new ShowAllEmployeesBasicInfo(name, lastName, hiredOn, gender); }
d8fe2cf3-c064-48b4-9078-738f7964ec7d
public static void main(String[] args) throws SQLException { ShowAllEmployeesOOP command = new ShowAllEmployeesOOP(); Collection<ShowAllEmployeesBasicInfo> allEmployeesBasicInformation = command .getAllEmployeesBasicInformation(); if (allEmployeesBasicInformation == null || allEmployeesBasicInformation.isEmpty()) { System.out .println("Unfortunatelly employee information is unavailable"); return; } for (ShowAllEmployeesBasicInfo employeeInfo : allEmployeesBasicInformation) { System.out.println(employeeInfo); } }
1244028b-c948-4f67-b6e6-84d962542660
@Override public String getGender() { return "man"; }
642bbad6-bf3b-4519-8423-390b3dce2b28
@Override public String getGender() { return "woman"; }
81db19ee-7abc-42df-92a4-7eeabcf0b0aa
public static Gender with(String genderAbriviation) { if (genderAbriviation == null || genderAbriviation.isEmpty()) return null; if ("M".equalsIgnoreCase(genderAbriviation)) return MALE; if ("W".equalsIgnoreCase(genderAbriviation)) return FEMALE; return null; }
0004c669-0dda-4fd5-9974-d017b524611f
public ManagerAdd(String name, String lastName, String manager) { this.name = name; this.lastName = lastName; this.manager = manager; }
1556b215-05e5-4d75-9995-dd8e65674d8c
public ManagerAdd() { }
5692aa6d-ecd6-4941-aecf-dc12d0205dcb
public String getName() { return name; }
a91db192-9fed-4f62-a1c4-df53728efb40
public void setName(String name) { this.name = name; }
9ca003f3-72a4-4e58-9265-2ba623e23894
public String getLastName() { return lastName; }
0dc4330e-0492-4160-a516-b329b98f8fd4
public void setLastName(String lastName) { this.lastName = lastName; }
743a6d94-2a08-45b3-aba0-a683ef3a5ad0
public String getManager() { return manager; }
c7a3119a-f711-4e97-9094-d68b984d12d4
public void setDepartment(String department) { this.manager = manager; }
e76015a7-b70b-4c72-b10c-96d22b619e46
@Override public String toString() { return String.format("%s %s %s ", getName(), getLastName(), getManager()); }
8f0631b3-6eac-4bf1-9afa-0061aed3d3c5
public DepartmentAdd(String name, String lastName, String department) { this.name = name; this.lastName = lastName; this.department = department; }
30aa9353-2aa3-4ae0-964f-7c77af69799c
public DepartmentAdd() { }
48509e78-868c-4775-8471-2feaae070f5c
public String getName() { return name; }
35bde431-0b61-4c6e-b342-6c7fb493f223
public void setName(String name) { this.name = name; }
bb4cca9a-be49-425e-98e5-02a9ea98be0d
public String getDepartment() { return department; }
d24782ee-43f4-47dc-8bef-2e095c372bfe
public void setDepartment(String department) { this.department = department; }
0a754672-57de-42f1-b8ef-3cd1786b8c1e
public String getLastName() { return lastName; }
be41b998-8260-465e-9189-234e71001d8e
public void setLastName(String lastName) { this.lastName = lastName; }
176be841-b9af-4c69-aea9-7f78c56f408f
@Override public String toString() { return String.format("%s %s %s ", getName(), getDepartment(), getLastName()); }
90357b55-1bb9-46f2-8823-c6f6a2139d8a
String getGender();
b7d0981f-f349-4618-9be5-598a8c163110
public ShowAllEmployeesBasicInfo(String name, String lastName, Date hiredOn, String gender) { this.name = name; this.lastName = lastName; this.hiredOn = hiredOn; this.gender = EmployeeGender.with(gender); }
9cbcb744-2329-46e9-849c-508ace89818c
public ShowAllEmployeesBasicInfo() { }
08863edf-864c-4c92-bb3f-3273fb44e1c3
public String getName() { return name; }
bbd99dcc-a81e-48cd-8d0d-d6f25fdc3dbb
public void setName(String name) { this.name = name; }
e4a2dae9-3ebf-4441-90d7-3cc3df15dee8
public String getLastName() { return lastName; }
788b4768-d2dc-4eee-aa2d-b3c7cd3eefe7
public void setLastName(String lastName) { this.lastName = lastName; }
107875c2-665a-44db-90c7-828980c3f27c
public Date getHiredOn() { return hiredOn; }
62ba5338-3019-4f56-8ef7-ecc803595c01
public void setHiredOn(Date hiredOn) { this.hiredOn = hiredOn; }
4dc94cec-1b13-4e11-a51e-932fadffec3b
public String getGender() { if (gender == null) return "Gender N/A"; return gender.getGender(); }
f436020b-37ce-4992-8bc2-6f0aa28eb0ad
public void setGender(Gender gender) { this.gender = gender; }
2a8c3085-f366-4e48-ba9b-cbcb0ef9e9d1
@Override public String toString() { return String.format("%s %s(%s) hiredOn : %s", getName(), getLastName(), getGender(), getHiredOn().toString()); }
bf714a64-45d8-43c5-8ad5-a03c8e8a4088
private void forbidSystemExitCall() { securityManager = System.getSecurityManager(); System.setSecurityManager(new SecurityManager() { @Override public void checkExit(int status) { throw new ExitTrappedException(status); } @Override public void checkPermission(final Permission perm) { if (securityManager != null) { securityManager.checkPermission(perm); } } }); }
677ad92b-0321-494f-b845-c384c38f7631
@Override public void checkExit(int status) { throw new ExitTrappedException(status); }
b333e58e-0c43-4f10-b5d2-32de740943af
@Override public void checkPermission(final Permission perm) { if (securityManager != null) { securityManager.checkPermission(perm); } }
2da15c6b-4990-4026-9f48-7c9cbef5f4c0
private void revertSecurityManager() { System.setSecurityManager(securityManager); }
e407d82b-edd1-4260-942d-4dcfa907cf2b
public int execute(Callable callable) { forbidSystemExitCall(); try { callable.call(); } catch(ExitTrappedException e) { return e.getStatus(); } catch (Exception e) { return -1; } finally { revertSecurityManager(); } return 0; }
b5d07eca-f8ee-4b25-8d4e-cb89c2cf7fd5
public ExitTrappedException(final int status) { this.status = status; }
5230f84b-4cc8-4e36-8de2-28fdbde269cb
public int getStatus() { return status; }
e3e17d1f-1987-41b6-bcc0-41d02b753b29
public static AppCategory parseCategory(String arg) throws MojoExecutionException { if (arg == null) { throw new MojoExecutionException("Application category must be specified. " + "Set either 'games' or 'media' value."); } if (arg.toLowerCase().equals("games")) { return GAMES; } else if (arg.toLowerCase().equals("media")) { return MEDIA; } else { throw new MojoExecutionException("Illegal application category. Only 'games' " + "and 'media' values are allowed."); } }
b3938b2d-165d-498d-8280-7bc8b58f5b67
private AppCategory(final String value) { this.value = value; }
8ca1ca03-8c98-44d0-91a0-a55f7671fd08
public String getValue() { return value; }
b6136128-ae20-4187-a48b-843a11568ab2
@Override public String toString() { return getValue(); }
56260970-651c-4356-8e6e-f864f7f4e3cb
public static AppEntryPointNameTruncation parseAppEntryPointNameTruncation(String arg) throws MojoExecutionException { if (arg == null) { return NONE; } else if (arg.toLowerCase().equals("left")) { return LEFT; } else if (arg.toLowerCase().equals("right")) { return RIGHT; } else { throw new MojoExecutionException("Illegal application entry point truncation method. " + "Only values 'left', 'right' and 'none' are allowed."); } }
15c83ae2-40b2-4593-932e-5216b7cd83a9
private AppEntryPointNameTruncation(final String value) { this.value = value; }
f9c079cc-abb2-4710-956e-f02e8f54e6f0
public String getValue() { return value; }
02c92029-30ad-44d8-8057-b90d27dc559b
@Override public String toString() { return getValue(); }
ac3cdc44-ee5b-4400-8992-87a9aa836745
public PackagerArgumentsBuilder(File apk, File bar, String author, AppCategory category) throws MojoExecutionException { setApkFile(apk); setBarFile(bar); setAuthor(author); setApplicationCategory(category); }
cd336fb8-0836-4260-95f5-eccde8a127bc
public String[] create() throws MojoExecutionException { ArrayList<String> args = new ArrayList<String>(); args.add(getApkFile().getPath()); if (getCompatibilityExceptionsFile() != null) { args.add(getCompatibilityExceptionsFile().getPath()); } if (getAndroidSdkFolder() != null) { args.add(getAndroidSdkFolder().getPath()); } args.add("-t"); args.add(getBarFile().getPath()); args.add("-a"); args.add(getAuthor()); args.add("-os"); args.add(String.valueOf(getMinimalOsVersion())); args.add(getApplicationCategory().getValue()); if (isVerifyApk()) { args.add("-rv"); } if (getAppEntryPointNameTruncation() == null) { args.add(AppEntryPointNameTruncation.NONE.getValue()); } else { args.add(getAppEntryPointNameTruncation().getValue()); } if (getWarningLevelThreshold() != -1) { args.add("-w" + getWarningLevelThreshold()); } return args.toArray(new String[args.size()]); }
90fd7011-309f-4a26-847f-715a7377ff00
public File getApkFile() { return apkFile; }
ef8c52e4-ceee-42eb-b47f-160b008cd96c
public PackagerArgumentsBuilder setApkFile(final File apkFile) throws MojoExecutionException { if (apkFile == null || !apkFile.isFile()) { throw new MojoExecutionException("APK file was not specified or is not a file."); } else if (!apkFile.exists() || !apkFile.canRead()) { throw new MojoExecutionException("Specified APK file does not exist or cannot be read."); } this.apkFile = apkFile; return this; }
644a24d9-509c-43ad-bf65-7a2cea0ac346
public File getBarFile() { return barFile; }
963743a6-0f75-43ad-9ed3-be2f0a4e3883
public PackagerArgumentsBuilder setBarFile(final File barFile) throws MojoExecutionException { if (barFile == null) { throw new MojoExecutionException("BAR file was not specified."); } else if (!barFile.getParentFile().canWrite()) { throw new MojoExecutionException("No permission to write for parent directory of specified BAR file."); } /* Apk2Bar tool accepts directory as a parameter and generates BAR file with the exact same name as APK's. */ this.barFile = barFile.getParentFile(); return this; }
e3e3ceac-778d-4dc9-b6f2-80b6113df8cd
public File getAndroidSdkFolder() { return androidSdkFolder; }
abbdc0a3-483a-48ec-964c-b45e097bff37
public PackagerArgumentsBuilder setAndroidSdkFolder(final File androidSdkFolder) throws MojoExecutionException { if (androidSdkFolder != null) { if (!androidSdkFolder.exists()) { throw new MojoExecutionException("Android SDK folder does not exist."); } else if (!androidSdkFolder.isDirectory() || !androidSdkFolder.canRead()) { throw new MojoExecutionException("Android SDK folder is not a directory or cannot be read."); } } this.androidSdkFolder = androidSdkFolder; return this; }
454682b1-d9c1-4e2f-a4c6-cf0731908bac
public File getCompatibilityExceptionsFile() { return compatibilityExceptionsFile; }
101c1f0f-a90a-4cd2-afde-6f18b1965013
public PackagerArgumentsBuilder setCompatibilityExceptionsFile(final File compatibilityExceptionsFile) throws MojoExecutionException { if (compatibilityExceptionsFile != null) { if (!compatibilityExceptionsFile.exists()) { throw new MojoExecutionException("Compatibility exceptions file does not exist."); } else if (!compatibilityExceptionsFile.isFile() || !compatibilityExceptionsFile.canRead()) { throw new MojoExecutionException("Compatibility exceptions file is not a file or cannot be read."); } } this.compatibilityExceptionsFile = compatibilityExceptionsFile; return this; }
403d2aef-6ef3-47c0-b9ef-9294902178fe
public String getAuthor() { return author; }
56469e5c-689d-4ab9-a491-f9919d7260a2
public PackagerArgumentsBuilder setAuthor(final String author) throws MojoExecutionException { if (author == null) { throw new MojoExecutionException("Author was not specified."); } this.author = author; return this; }
19cd5508-67fd-4ea8-a8f6-398ab09de13d
public float getMinimalOsVersion() { return minimalOsVersion; }
cce978b6-ceb2-438c-b188-c7bbe9799790
public PackagerArgumentsBuilder setMinimalOsVersion(final float minimalOsVersion) throws MojoExecutionException { if (minimalOsVersion < 10) { throw new MojoExecutionException("Illegal argument. Minimal OS version cannot be less than 10."); } this.minimalOsVersion = minimalOsVersion; return this; }
d050c394-d6b1-44cb-9152-118e0658420d
public AppCategory getApplicationCategory() { return applicationCategory; }
7b0f093e-9904-4a9d-b11d-71ac6e514c49
public PackagerArgumentsBuilder setApplicationCategory(final AppCategory applicationCategory) { this.applicationCategory = applicationCategory; return this; }
9c4a3934-1ab1-4397-b8fe-6e6ade70a59c
public PackagerArgumentsBuilder setApplicationCategory(final String applicationCategory) throws MojoExecutionException { return setApplicationCategory(AppCategory.parseCategory(applicationCategory)); }
37244724-7a07-4543-9d70-4a46519cf605
public boolean isVerifyApk() { return verifyApk; }
faae7b33-3f91-4c1f-8ff6-2b52cb65a509
public PackagerArgumentsBuilder setVerifyApk(final boolean verifyApk) { this.verifyApk = verifyApk; return this; }
45ff5d85-d09d-43c8-9da1-02760915d4f1
public AppEntryPointNameTruncation getAppEntryPointNameTruncation() { return appEntryPointNameTruncation; }
7b1d460a-77fe-4de8-b58a-68c3639110c6
public PackagerArgumentsBuilder setAppEntryPointNameTruncation (final AppEntryPointNameTruncation appEntryPointNameTruncation) throws MojoExecutionException { this.appEntryPointNameTruncation = appEntryPointNameTruncation; return this; }
d288f760-5588-44f0-a0ba-d438d14d269c
public PackagerArgumentsBuilder setAppEntryPointNameTruncation (final String appEntryPointNameTruncation) throws MojoExecutionException { return setAppEntryPointNameTruncation(AppEntryPointNameTruncation .parseAppEntryPointNameTruncation(appEntryPointNameTruncation)); }
6269463f-e9e1-431e-86b0-4755dbea3b28
public int getWarningLevelThreshold() { return warningLevelThreshold; }
bb7da5bf-3feb-43b8-923e-bad15548458c
public PackagerArgumentsBuilder setWarningLevelThreshold(final int warningLevelThreshold) throws MojoExecutionException { if (warningLevelThreshold < -1 || warningLevelThreshold > 5) { throw new MojoExecutionException("Warning level threshold value cannot be less than -1 (no impact) and larger than 5 (severe)"); } this.warningLevelThreshold = warningLevelThreshold; return this; }
a0fb5406-b824-4d92-94f9-0a2f801c27a2
public File getApkFile() { return apkFile; }
63fdfeb8-ab79-4831-a0ea-723477d02528
public void setApkFile(final File apkFile) { this.apkFile = apkFile; }
363fd1ee-7e1a-4205-a113-0bf22d83c1d6
public File getBarFile() { return barFile; }
8df80855-0741-4e9e-a4b9-9411663446b4
public void setBarFile(final File barFile) { this.barFile = barFile; }
dd41c7fc-d7a1-4318-b844-482f82a6f740
public File getAndroidSdkFolder() { return androidSdkFolder; }
b92a7d89-330d-4032-a982-522c0d4bbebb
public void setAndroidSdkFolder(final File androidSdkFolder) { this.androidSdkFolder = androidSdkFolder; }