Commit d0a11c02 by 陶光胜

代码规范修改

parent f1139dbe
...@@ -296,7 +296,7 @@ public class DataDownloadUtils { ...@@ -296,7 +296,7 @@ public class DataDownloadUtils {
.getMethod("get" + fieldName.substring(0, 1).toUpperCase() + fieldName.substring(1), null); .getMethod("get" + fieldName.substring(0, 1).toUpperCase() + fieldName.substring(1), null);
return method.invoke(obj, null); return method.invoke(obj, null);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); LOGGER.warn(e);
} }
return result; return result;
} }
...@@ -309,7 +309,7 @@ public class DataDownloadUtils { ...@@ -309,7 +309,7 @@ public class DataDownloadUtils {
field.setAccessible(true); field.setAccessible(true);
return field; return field;
} catch (NoSuchFieldException e) { } catch (NoSuchFieldException e) {
e.printStackTrace(); LOGGER.warn(e);
} }
} }
return null; return null;
......
...@@ -229,11 +229,11 @@ public abstract class QrcodeDownload { ...@@ -229,11 +229,11 @@ public abstract class QrcodeDownload {
InputStream in = conn.getInputStream(); InputStream in = conn.getInputStream();
return IOUtils.toByteArray(in); return IOUtils.toByteArray(in);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); log.warn(e);
return null; return null;
} }
} catch (MalformedURLException e) { } catch (MalformedURLException e) {
e.printStackTrace(); log.warn(e);
return null; return null;
} }
} }
...@@ -307,7 +307,6 @@ public abstract class QrcodeDownload { ...@@ -307,7 +307,6 @@ public abstract class QrcodeDownload {
logo.flush(); logo.flush();
image.flush(); image.flush();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
log.error(e.getMessage()); log.error(e.getMessage());
} }
} }
...@@ -319,7 +318,6 @@ public abstract class QrcodeDownload { ...@@ -319,7 +318,6 @@ public abstract class QrcodeDownload {
ImageIO.write(image, format, baos); ImageIO.write(image, format, baos);
return baos.toByteArray(); return baos.toByteArray();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
log.error(e.getMessage()); log.error(e.getMessage());
} }
return null; return null;
...@@ -360,7 +358,7 @@ public abstract class QrcodeDownload { ...@@ -360,7 +358,7 @@ public abstract class QrcodeDownload {
} }
} }
} catch (WriterException e) { } catch (WriterException e) {
e.printStackTrace(); log.warn(e);
} }
return image; return image;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment