5118 eliminate sout calls which are not required

This commit is contained in:
William Schaefer 2019-07-29 17:21:49 -04:00
parent 41116e63b3
commit dcdc16e57f
10 changed files with 40 additions and 68 deletions

View File

@ -8,11 +8,11 @@ PlatformUtil.jrePath.usingJavaPath.msg=Using java binary path: {0}
PlatformUtil.getPID.sigarNotInit.msg=Cannot get PID, sigar not initialized PlatformUtil.getPID.sigarNotInit.msg=Cannot get PID, sigar not initialized
PlatformUtil.getPID.gen.msg=Cannot get PID,{0} PlatformUtil.getPID.gen.msg=Cannot get PID,{0}
PlatformUtil.getJavaPID.sigarNotInit.msg=Cannot get PID of a java process, sigar not initialized PlatformUtil.getJavaPID.sigarNotInit.msg=Cannot get PID of a java process, sigar not initialized
PlatformUtil.getJavaPID.gen.msg=Cannot get PID for query: {0}, {1} PlatformUtil.getJavaPID.gen.msg=Cannot get PID for query: {0}
PlatformUtil.getJavaPIDs.sigarNotInit=Cannot get PIDs of a java process, sigar not initialized PlatformUtil.getJavaPIDs.sigarNotInit=Cannot get PIDs of a java process, sigar not initialized
PlatformUtil.getJavaPIDs.gen.msg=Cannot get PIDs for query: {0}, {1} PlatformUtil.getJavaPIDs.gen.msg=Cannot get PIDs for query: {0}
PlatformUtil.killProcess.sigarNotInit.msg=Cannot kill process by pid, sigar not initialized. PlatformUtil.killProcess.sigarNotInit.msg=Cannot kill process by pid, sigar not initialized.
PlatformUtil.killProcess.gen.msg=Cannot kill process: {0}, {1} PlatformUtil.killProcess.gen.msg=Cannot kill process: {0}
PlatformUtil.getProcVmUsed.sigarNotInit.msg=Cannot get virt mem used, sigar not initialized. PlatformUtil.getProcVmUsed.sigarNotInit.msg=Cannot get virt mem used, sigar not initialized.
PlatformUtil.getProcVmUsed.gen.msg=Cannot get virt mem used, {0} PlatformUtil.getProcVmUsed.gen.msg=Cannot get virt mem used, {0}
PlatformUtil.getJvmMemInfo.usageText=JVM heap usage: {0}, JVM non-heap usage: {1} PlatformUtil.getJvmMemInfo.usageText=JVM heap usage: {0}, JVM non-heap usage: {1}

View File

@ -35,6 +35,7 @@ import java.nio.file.Paths;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.logging.Level;
import javax.swing.filechooser.FileSystemView; import javax.swing.filechooser.FileSystemView;
import org.apache.commons.io.FilenameUtils; import org.apache.commons.io.FilenameUtils;
import org.hyperic.sigar.Sigar; import org.hyperic.sigar.Sigar;
@ -55,6 +56,7 @@ public class PlatformUtil {
private static final String CLASSIFIERS_SUBDIRECTORY = "object_detection_classifiers"; //NON-NLS private static final String CLASSIFIERS_SUBDIRECTORY = "object_detection_classifiers"; //NON-NLS
private static final String OCR_LANGUAGE_SUBDIRECTORY = "ocr_language_packs"; //NON-NLS private static final String OCR_LANGUAGE_SUBDIRECTORY = "ocr_language_packs"; //NON-NLS
private static final String OCR_LANGUAGE_PACK_EXT = "traineddata"; private static final String OCR_LANGUAGE_PACK_EXT = "traineddata";
private static final Logger logger = Logger.getLogger(PlatformUtil.class.getName());
private static String javaPath = null; private static String javaPath = null;
public static final String OS_NAME_UNKNOWN = NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.nameUnknown"); public static final String OS_NAME_UNKNOWN = NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.nameUnknown");
public static final String OS_VERSION_UNKNOWN = NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.verUnknown"); public static final String OS_VERSION_UNKNOWN = NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.verUnknown");
@ -172,10 +174,7 @@ public class PlatformUtil {
File jrePath = new File(getInstallPath() + File.separator + "jre"); File jrePath = new File(getInstallPath() + File.separator + "jre");
if (jrePath.exists() && jrePath.isDirectory()) { if (jrePath.exists() && jrePath.isDirectory()) {
System.out.println( logger.log(Level.INFO, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.jrePath.jreDir.msg", jrePath.getAbsolutePath()));
NbBundle.getMessage(PlatformUtil.class,
"PlatformUtil.jrePath.jreDir.msg",
jrePath.getAbsolutePath()));
javaPath = jrePath.getAbsolutePath() + File.separator + "bin" + File.separator + "java"; //NON-NLS javaPath = jrePath.getAbsolutePath() + File.separator + "bin" + File.separator + "java"; //NON-NLS
} else { } else {
//else use system installed java in PATH env variable //else use system installed java in PATH env variable
@ -183,7 +182,7 @@ public class PlatformUtil {
} }
System.out.println(NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.jrePath.usingJavaPath.msg", javaPath)); logger.log(Level.INFO, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.jrePath.usingJavaPath.msg", javaPath));
return javaPath; return javaPath;
} }
@ -504,10 +503,10 @@ public class PlatformUtil {
if (sigar != null) { if (sigar != null) {
pid = sigar.getPid(); pid = sigar.getPid();
} else { } else {
System.out.println(NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getPID.sigarNotInit.msg")); logger.log(Level.WARNING, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getPID.sigarNotInit.msg"));
} }
} catch (Exception e) { } catch (Exception e) {
System.out.println(NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getPID.gen.msg", e.toString())); logger.log(Level.SEVERE, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getPID.gen.msg"), e);
} }
return pid; return pid;
@ -534,11 +533,10 @@ public class PlatformUtil {
ProcessFinder finder = new ProcessFinder(sigar); ProcessFinder finder = new ProcessFinder(sigar);
jpid = finder.findSingleProcess(sigarQuery); jpid = finder.findSingleProcess(sigarQuery);
} else { } else {
System.out.println(NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getJavaPID.sigarNotInit.msg")); logger.log(Level.WARNING, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getJavaPID.sigarNotInit.msg"));
} }
} catch (Exception e) { } catch (Exception e) {
System.out.println( logger.log(Level.SEVERE, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getJavaPID.gen.msg", sigarQuery), e);
NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getJavaPID.gen.msg", sigarQuery, e.toString()));
} }
return jpid; return jpid;
@ -566,11 +564,10 @@ public class PlatformUtil {
ProcessFinder finder = new ProcessFinder(sigar); ProcessFinder finder = new ProcessFinder(sigar);
jpids = finder.find(sigarQuery); jpids = finder.find(sigarQuery);
} else { } else {
System.out.println(NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getJavaPIDs.sigarNotInit")); logger.log(Level.WARNING, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getJavaPIDs.sigarNotInit"));
} }
} catch (Exception e) { } catch (Exception e) {
System.out.println( logger.log(Level.SEVERE, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getJavaPIDs.gen.msg", sigarQuery), e);
NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getJavaPIDs.gen.msg", sigarQuery, e.toString()));
} }
return jpids; return jpids;
@ -589,11 +586,10 @@ public class PlatformUtil {
if (sigar != null) { if (sigar != null) {
sigar.kill(pid, 9); sigar.kill(pid, 9);
} else { } else {
System.out.println(NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.killProcess.sigarNotInit.msg")); logger.log(Level.WARNING, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.killProcess.sigarNotInit.msg"));
} }
} catch (Exception e) { } catch (Exception e) {
System.out.println( logger.log(Level.SEVERE, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.killProcess.gen.msg", pid), e);
NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.killProcess.gen.msg", pid, e.toString()));
} }
} }
@ -612,12 +608,12 @@ public class PlatformUtil {
} }
if (sigar == null || getPID() == -1) { if (sigar == null || getPID() == -1) {
System.out.println(NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getProcVmUsed.sigarNotInit.msg")); logger.log(Level.WARNING, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getProcVmUsed.sigarNotInit.msg"));
return -1; return -1;
} }
virtMem = sigar.getProcMem(getPID()).getSize(); virtMem = sigar.getProcMem(getPID()).getSize();
} catch (Exception e) { } catch (Exception e) {
System.out.println(NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getProcVmUsed.gen.msg", e.toString())); logger.log(Level.SEVERE, NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getProcVmUsed.gen.msg"), e);
} }
return virtMem; return virtMem;

View File

@ -22,12 +22,14 @@ import org.sleuthkit.autopsy.ingest.runIngestModuleWizard.RunIngestModulesAction
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.logging.Level;
import javax.swing.JComponent; import javax.swing.JComponent;
import javax.swing.JMenuItem; import javax.swing.JMenuItem;
import org.openide.awt.DynamicMenuContent; import org.openide.awt.DynamicMenuContent;
import org.openide.util.NbBundle; import org.openide.util.NbBundle;
import org.sleuthkit.autopsy.casemodule.Case; import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException; import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
import org.sleuthkit.autopsy.coreutils.Logger;
import org.sleuthkit.datamodel.Content; import org.sleuthkit.datamodel.Content;
import org.sleuthkit.datamodel.TskCoreException; import org.sleuthkit.datamodel.TskCoreException;
@ -37,6 +39,8 @@ import org.sleuthkit.datamodel.TskCoreException;
*/ */
final class RunIngestSubMenu extends JMenuItem implements DynamicMenuContent { final class RunIngestSubMenu extends JMenuItem implements DynamicMenuContent {
private static final Logger logger = Logger.getLogger(RunIngestSubMenu.class.getName());
/** /**
* Creates main menu/popup menu items. It's called each time a popup menu is * Creates main menu/popup menu items. It's called each time a popup menu is
* constructed and just once for the main menu. Main menu updates happen * constructed and just once for the main menu. Main menu updates happen
@ -54,7 +58,7 @@ final class RunIngestSubMenu extends JMenuItem implements DynamicMenuContent {
// No open Cases, create a disabled empty menu // No open Cases, create a disabled empty menu
return getEmpty(); return getEmpty();
} catch (TskCoreException | NoCurrentCaseException e) { } catch (TskCoreException | NoCurrentCaseException e) {
System.out.println("Exception getting images: " + e.getMessage()); //NON-NLS logger.log(Level.WARNING, "Exception getting images.", e);
} }
JComponent[] comps = new JComponent[dataSources.size()]; JComponent[] comps = new JComponent[dataSources.size()];

View File

@ -216,7 +216,6 @@ final class ContactAnalyzer {
try { try {
while ((length = is.read(buffer)) != -1) { while ((length = is.read(buffer)) != -1) {
os.write(buffer, 0, length); os.write(buffer, 0, length);
System.out.println(length);
os.flush(); os.flush();
} }
@ -239,13 +238,13 @@ final class ContactAnalyzer {
ostream.write(c); ostream.write(c);
} }
} catch (IOException e) { } catch (IOException e) {
System.out.println("Error: " + e.getMessage()); //NON-NLS logger.log(Level.WARNING, "Error copying file", e);
} finally { } finally {
try { try {
istream.close(); istream.close();
ostream.close(); ostream.close();
} catch (IOException e) { } catch (IOException e) {
System.out.println("File did not close"); //NON-NLS logger.log(Level.WARNING, "File did not close", e);
} }
} }
} }

View File

@ -1,7 +1,7 @@
/* /*
* Autopsy Forensic Browser * Autopsy Forensic Browser
* *
* Copyright 2013-2018 Basis Technology Corp. * Copyright 2013-2019 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org * Contact: carrier <at> sleuthkit <dot> org
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
@ -43,13 +43,13 @@ class StixArtifactData {
private final String objType; private final String objType;
private static final Logger logger = Logger.getLogger(StixArtifactData.class.getName()); private static final Logger logger = Logger.getLogger(StixArtifactData.class.getName());
public StixArtifactData(AbstractFile a_file, String a_observableId, String a_objType) { StixArtifactData(AbstractFile a_file, String a_observableId, String a_objType) {
file = a_file; file = a_file;
observableId = a_observableId; observableId = a_observableId;
objType = a_objType; objType = a_objType;
} }
public StixArtifactData(long a_objId, String a_observableId, String a_objType) { StixArtifactData(long a_objId, String a_observableId, String a_objType) {
try { try {
Case case1 = Case.getCurrentCaseThrows(); Case case1 = Case.getCurrentCaseThrows();
SleuthkitCase sleuthkitCase = case1.getSleuthkitCase(); SleuthkitCase sleuthkitCase = case1.getSleuthkitCase();
@ -63,7 +63,7 @@ class StixArtifactData {
@Messages({"StixArtifactData.indexError.message=Failed to index STIX interesting file hit artifact for keyword search.", @Messages({"StixArtifactData.indexError.message=Failed to index STIX interesting file hit artifact for keyword search.",
"StixArtifactData.noOpenCase.errMsg=No open case available."}) "StixArtifactData.noOpenCase.errMsg=No open case available."})
public void createArtifact(String a_title) throws TskCoreException { void createArtifact(String a_title) throws TskCoreException {
Case currentCase; Case currentCase;
try { try {
currentCase = Case.getCurrentCaseThrows(); currentCase = Case.getCurrentCaseThrows();
@ -101,8 +101,4 @@ class StixArtifactData {
} }
} }
} }
public void print() {
System.out.println(" " + observableId + " " + file.getName());
}
} }

View File

@ -279,10 +279,8 @@ class InterCaseTestUtils {
for (CorrelationCase correlationCase : EamDb.getInstance().getCases()) { for (CorrelationCase correlationCase : EamDb.getInstance().getCases()) {
mapOfCaseIdsToCase.put(correlationCase.getDisplayName(), correlationCase.getID()); mapOfCaseIdsToCase.put(correlationCase.getDisplayName(), correlationCase.getID());
} }
System.out.println("EAM IS ENABLED");
return mapOfCaseIdsToCase; return mapOfCaseIdsToCase;
} else { } else {
System.out.println("EAMDB NOT ENABLED");
//it is reasonable that this might happen... //it is reasonable that this might happen...
// for example when we test the feature in the absence of an enabled eamdb // for example when we test the feature in the absence of an enabled eamdb
return new HashMap<>(0); return new HashMap<>(0);

View File

@ -85,8 +85,7 @@ public class BingTranslatorTest {
// /* // /*
// //It's unrealistic to expect the same answer every time, but sometimes // //It's unrealistic to expect the same answer every time, but sometimes
// //it's helpful to have this in your debug process. // //it's helpful to have this in your debug process.
// System.out.println(translation); // assertEquals("Result did not match expected result", expectedTranslation, translation);
// assertEquals(expectedTranslation, translation);
// */ // */
// } // }
} }

View File

@ -37,8 +37,8 @@ public class GoogleTranslatorTest {
// //It's unrealistic to expect the same answer every time, but sometimes // //It's unrealistic to expect the same answer every time, but sometimes
// //it's helpful to have this in your debug process. // //it's helpful to have this in your debug process.
// //
// String expResult = "translate"; assertEquals(expResult, result); // String expResult = "translate"; assertEquals(expResult, result);
// System.out.println(result); // assertEquals("Result did not match expected result" expResult, result);
} }
//Commented out because using TranslateOption with the current version of Guava is not supported JIRA-5063 //Commented out because using TranslateOption with the current version of Guava is not supported JIRA-5063
@ -63,7 +63,6 @@ public class GoogleTranslatorTest {
// //It's unrealistic to expect the same answer every time, but sometimes // //It's unrealistic to expect the same answer every time, but sometimes
// //it's helpful to have this in your debug process. // //it's helpful to have this in your debug process.
// String expResult = "¡Hola Mundo!"; // String expResult = "¡Hola Mundo!";
// assertEquals(expResult, result); // assertEquals("Result did not match expected result", expResult, result);
// System.out.println(result);
// } // }
} }

View File

@ -48,8 +48,6 @@ public class CreditCardValidatorTest {
@Test @Test
public void testLengthMatchesBin() { public void testLengthMatchesBin() {
System.out.println("lengthMatchesBin");
//amex must be 15 //amex must be 15
assertEquals(true, CreditCardValidator.isValidCCN("3431 136294 58529")); assertEquals(true, CreditCardValidator.isValidCCN("3431 136294 58529"));
assertEquals(false, CreditCardValidator.isValidCCN("3431-136294-5850")); //too short assertEquals(false, CreditCardValidator.isValidCCN("3431-136294-5850")); //too short
@ -95,8 +93,6 @@ public class CreditCardValidatorTest {
*/ */
@Test @Test
public void testIsValidCCN16() { public void testIsValidCCN16() {
System.out.println("isValidCCN");
//rules for separators and grouping for 16 digits //rules for separators and grouping for 16 digits
assertEquals(true, CreditCardValidator.isValidCCN("1234567890318342"));// dashes assertEquals(true, CreditCardValidator.isValidCCN("1234567890318342"));// dashes
assertEquals(true, CreditCardValidator.isValidCCN("1234-5678-9031-8342"));// dashes assertEquals(true, CreditCardValidator.isValidCCN("1234-5678-9031-8342"));// dashes
@ -111,8 +107,6 @@ public class CreditCardValidatorTest {
@Test @Test
public void testIsValidCCN15() { public void testIsValidCCN15() {
System.out.println("isValidCCN");
//amex are fifteen digits, and grouped 4 6 5 //amex are fifteen digits, and grouped 4 6 5
//amex cards that strart with 34 //amex cards that strart with 34
assertEquals(true, CreditCardValidator.isValidCCN("3431 136294 58529")); assertEquals(true, CreditCardValidator.isValidCCN("3431 136294 58529"));
@ -143,7 +137,6 @@ public class CreditCardValidatorTest {
@Test @Test
public void testIsValidCCN19() { public void testIsValidCCN19() {
System.out.println("isValidCCN");
//nineteen digit (visa) cards 4-4-4-4-3 //nineteen digit (visa) cards 4-4-4-4-3
assertEquals(true, CreditCardValidator.isValidCCN("4539747947839518654")); assertEquals(true, CreditCardValidator.isValidCCN("4539747947839518654"));
assertEquals(true, CreditCardValidator.isValidCCN("4539-7479-4783-9518-654")); assertEquals(true, CreditCardValidator.isValidCCN("4539-7479-4783-9518-654"));
@ -168,8 +161,6 @@ public class CreditCardValidatorTest {
@Test @Test
public void testIsValidCCN18() { public void testIsValidCCN18() {
System.out.println("isValidCCN");
assertEquals(true, CreditCardValidator.isValidCCN("123456789031834267")); assertEquals(true, CreditCardValidator.isValidCCN("123456789031834267"));
assertEquals(true, CreditCardValidator.isValidCCN("1234 5678 9031 8342 67")); assertEquals(true, CreditCardValidator.isValidCCN("1234 5678 9031 8342 67"));
assertEquals(true, CreditCardValidator.isValidCCN("1234-56789031834-267")); assertEquals(true, CreditCardValidator.isValidCCN("1234-56789031834-267"));
@ -181,8 +172,6 @@ public class CreditCardValidatorTest {
@Test @Test
public void testIsValidCCN17() { public void testIsValidCCN17() {
System.out.println("isValidCCN");
assertEquals(true, CreditCardValidator.isValidCCN("12345678903183426")); assertEquals(true, CreditCardValidator.isValidCCN("12345678903183426"));
assertEquals(true, CreditCardValidator.isValidCCN("1234 5678 9031 8342 6")); assertEquals(true, CreditCardValidator.isValidCCN("1234 5678 9031 8342 6"));
assertEquals(true, CreditCardValidator.isValidCCN("1234-56789031834-26")); assertEquals(true, CreditCardValidator.isValidCCN("1234-56789031834-26"));
@ -194,8 +183,6 @@ public class CreditCardValidatorTest {
@Test @Test
public void testIsValidCCN14() { public void testIsValidCCN14() {
System.out.println("isValidCCN");
assertEquals(true, CreditCardValidator.isValidCCN("12345678903183")); assertEquals(true, CreditCardValidator.isValidCCN("12345678903183"));
assertEquals(true, CreditCardValidator.isValidCCN("1234 5678 9031 83")); assertEquals(true, CreditCardValidator.isValidCCN("1234 5678 9031 83"));
assertEquals(true, CreditCardValidator.isValidCCN("1234-5678903183")); assertEquals(true, CreditCardValidator.isValidCCN("1234-5678903183"));
@ -207,8 +194,6 @@ public class CreditCardValidatorTest {
@Test @Test
public void testIsValidCCN13() { public void testIsValidCCN13() {
System.out.println("isValidCCN");
assertEquals(true, CreditCardValidator.isValidCCN("1234567890318")); assertEquals(true, CreditCardValidator.isValidCCN("1234567890318"));
assertEquals(true, CreditCardValidator.isValidCCN("1234 5678 9031 8")); assertEquals(true, CreditCardValidator.isValidCCN("1234 5678 9031 8"));
assertEquals(true, CreditCardValidator.isValidCCN("1234-567890318")); assertEquals(true, CreditCardValidator.isValidCCN("1234-567890318"));
@ -220,8 +205,6 @@ public class CreditCardValidatorTest {
@Test @Test
public void testIsValidCCN12() { public void testIsValidCCN12() {
System.out.println("isValidCCN");
assertEquals(true, CreditCardValidator.isValidCCN("123456789031")); assertEquals(true, CreditCardValidator.isValidCCN("123456789031"));
assertEquals(true, CreditCardValidator.isValidCCN("1234 5678 9031")); assertEquals(true, CreditCardValidator.isValidCCN("1234 5678 9031"));
assertEquals(true, CreditCardValidator.isValidCCN("1234-56789031")); assertEquals(true, CreditCardValidator.isValidCCN("1234-56789031"));

View File

@ -79,11 +79,9 @@ public class ScalpelCarver {
success = true; success = true;
} catch (UnsatisfiedLinkError ex) { } catch (UnsatisfiedLinkError ex) {
String msg = NbBundle.getMessage(ScalpelCarver.class, "ScalpelCarver.loadLib.errMsg.cannotLoadLib", id); String msg = NbBundle.getMessage(ScalpelCarver.class, "ScalpelCarver.loadLib.errMsg.cannotLoadLib", id);
System.out.println(msg + ex.toString());
logger.log(Level.SEVERE, msg, ex); logger.log(Level.SEVERE, msg, ex);
} catch (Exception ex) { } catch (Exception ex) {
String msg = NbBundle.getMessage(ScalpelCarver.class, "ScalpelCarver.loadLib.errMsg.cannotLoadLib2", id); String msg = NbBundle.getMessage(ScalpelCarver.class, "ScalpelCarver.loadLib.errMsg.cannotLoadLib2", id);
System.out.println(msg + ex.toString());
logger.log(Level.SEVERE, msg, ex); logger.log(Level.SEVERE, msg, ex);
} }