Skip to content

Commit 9079512

Browse files
authored
Merge pull request #182 from ponder-lab/noLogInvs
Fix noInputLogInvs
2 parents 9c111fb + 2bcb90c commit 9079512

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

edu.cuny.hunter.log.core/src/edu/cuny/hunter/log/core/messages/Messages.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import org.eclipse.osgi.util.NLS;
44

55
public class Messages extends NLS {
6-
private static final String BUNDLE_NAME = "edu.cuny.hunter.log.core.messages.Messages"; //$NON-NLS-1$
6+
private static final String BUNDLE_NAME = "edu.cuny.hunter.log.core.messages.messages"; //$NON-NLS-1$
77
public static String Name;
88
public static String NoInputLogInvs;
99
public static String ReadOnlyElement;

edu.cuny.hunter.log.core/src/edu/cuny/hunter/log/core/messages/messages.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name=Rejuvenate Log Level!
2-
NoPossibleRejuvenatedLog=No log level could be transformed!
2+
NoInputLogInvs=Cannot detect any input log invocations!
33
ReadOnlyElement=We have hit a jar or other Model Element where we cannot make relevant changes.
44
BinaryElement = Element is in a .class file.
55
GeneratedElement=We cannot rejuvenate anything because of generated code.

edu.cuny.hunter.log.core/src/edu/cuny/hunter/log/core/refactorings/LogRejuvenatingProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public RefactoringStatus checkFinalConditions(final IProgressMonitor monitor, fi
288288

289289
if (!status.hasFatalError()) {
290290
if (logInvocationSet.isEmpty()) {
291-
status.addFatalError(Messages.NoInputLogInvs);
291+
status.addWarning(Messages.NoInputLogInvs);
292292
}
293293
}
294294

0 commit comments

Comments
 (0)