Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2014-03-05 16:12:38 +0000
committerFred Bricon2014-03-05 16:12:38 +0000
commitb1f9b406ae47b7896c8ad98d413831c7ea504c7a (patch)
treef655aba07bda6ae95dc83a50ecc5f45e27547ae0 /org.eclipse.m2e.core.ui/src/org
parenta3296cccca6d931012869c5f1ca58114f99e5c57 (diff)
downloadm2e-core-b1f9b406ae47b7896c8ad98d413831c7ea504c7a.tar.gz
m2e-core-b1f9b406ae47b7896c8ad98d413831c7ea504c7a.tar.xz
m2e-core-b1f9b406ae47b7896c8ad98d413831c7ea504c7a.zip
427266 : default package should be empty
Change-Id: I52e74003ae354f7092c6abd24b14d28a8e2b93b9 Signed-off-by: Fred Bricon <fbricon@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.core.ui/src/org')
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypeParametersPage.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypeParametersPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypeParametersPage.java
index 82346395..e6482d2e 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypeParametersPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypeParametersPage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008-2013 Sonatype, Inc. and others
+ * Copyright (c) 2008-2014 Sonatype, Inc. and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -75,7 +75,8 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
public static final String DEFAULT_VERSION = "0.0.1-SNAPSHOT"; //$NON-NLS-1$
- public static final String DEFAULT_PACKAGE = "foo"; //$NON-NLS-1$
+ @Deprecated
+ public static final String _DEFAULT_PACKAGE = ""; //$NON-NLS-1$
Table propertiesTable;
@@ -614,7 +615,7 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
}
public static String getDefaultJavaPackage(String groupId, String artifactId) {
- StringBuffer sb = new StringBuffer(groupId);
+ StringBuilder sb = new StringBuilder(groupId);
if(sb.length() > 0 && artifactId.length() > 0) {
sb.append('.');
@@ -622,12 +623,8 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
sb.append(artifactId);
- if(sb.length() == 0) {
- sb.append(DEFAULT_PACKAGE);
- }
-
boolean isFirst = true;
- StringBuffer pkg = new StringBuffer();
+ StringBuilder pkg = new StringBuilder();
for(int i = 0; i < sb.length(); i++ ) {
char c = sb.charAt(i);
if(c == '-') {

Back to the top