From e07b1859dbf796257da6f7115add6b2134b74272 Mon Sep 17 00:00:00 2001 From: Jacky Date: Thu, 16 Nov 2017 15:55:14 -0500 Subject: [PATCH] replace _ with variable for exception --- main/src/com/google/refine/importers/WikitextImporter.java | 4 ++-- .../com/google/refine/model/recon/StandardReconConfig.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/src/com/google/refine/importers/WikitextImporter.java b/main/src/com/google/refine/importers/WikitextImporter.java index 578bc15da..382abf3bb 100644 --- a/main/src/com/google/refine/importers/WikitextImporter.java +++ b/main/src/com/google/refine/importers/WikitextImporter.java @@ -414,7 +414,7 @@ public class WikitextImporter extends TabularImportingParserBase { } else if ("name".equals(currentXmlAttr)) { currentReferenceName = xmlAttrStringBuilder.toString(); } - } catch (NumberFormatException _) { + } catch (NumberFormatException nfe) { } currentXmlAttr = null; xmlAttrStringBuilder = null; @@ -425,7 +425,7 @@ public class WikitextImporter extends TabularImportingParserBase { try { currentXmlAttr = e.getAsString(); - } catch (UnsupportedOperationException _) { + } catch (UnsupportedOperationException soe) { currentXmlAttr = null; } } diff --git a/main/src/com/google/refine/model/recon/StandardReconConfig.java b/main/src/com/google/refine/model/recon/StandardReconConfig.java index f04764723..c8dd566e3 100644 --- a/main/src/com/google/refine/model/recon/StandardReconConfig.java +++ b/main/src/com/google/refine/model/recon/StandardReconConfig.java @@ -252,7 +252,7 @@ public class StandardReconConfig extends ReconConfig { job.text = query; job.code = stringWriter.toString(); return job; - } catch (JSONException _) { + } catch (JSONException je) { return null; } }