Commit d0a11c02 by 陶光胜

代码规范修改

parent f1139dbe
......@@ -296,7 +296,7 @@ public class DataDownloadUtils {
.getMethod("get" + fieldName.substring(0, 1).toUpperCase() + fieldName.substring(1), null);
return method.invoke(obj, null);
} catch (Exception e) {
e.printStackTrace();
LOGGER.warn(e);
}
return result;
}
......@@ -309,7 +309,7 @@ public class DataDownloadUtils {
field.setAccessible(true);
return field;
} catch (NoSuchFieldException e) {
e.printStackTrace();
LOGGER.warn(e);
}
}
return null;
......
......@@ -229,11 +229,11 @@ public abstract class QrcodeDownload {
InputStream in = conn.getInputStream();
return IOUtils.toByteArray(in);
} catch (IOException e) {
e.printStackTrace();
log.warn(e);
return null;
}
} catch (MalformedURLException e) {
e.printStackTrace();
log.warn(e);
return null;
}
}
......@@ -307,7 +307,6 @@ public abstract class QrcodeDownload {
logo.flush();
image.flush();
} catch (Exception e) {
e.printStackTrace();
log.error(e.getMessage());
}
}
......@@ -319,7 +318,6 @@ public abstract class QrcodeDownload {
ImageIO.write(image, format, baos);
return baos.toByteArray();
} catch (Exception e) {
e.printStackTrace();
log.error(e.getMessage());
}
return null;
......@@ -360,7 +358,7 @@ public abstract class QrcodeDownload {
}
}
} catch (WriterException e) {
e.printStackTrace();
log.warn(e);
}
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