Commit 914947c6 authored by pengguangpu's avatar pengguangpu

完善部分代码注释

parent 721d3247
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</value> </value>
</option> </option>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">
......
...@@ -71,7 +71,7 @@ public class PrinterManager { ...@@ -71,7 +71,7 @@ public class PrinterManager {
/** /**
* 轮询初始化 * 轮询初始化
* *
* @return 状态码 * @return 是否初始化成功
*/ */
public boolean init(Context context) { public boolean init(Context context) {
for (Type type : Type.values()) { for (Type type : Type.values()) {
......
...@@ -122,7 +122,7 @@ public class YingtaiPrinter extends BasePrinter { ...@@ -122,7 +122,7 @@ public class YingtaiPrinter extends BasePrinter {
e.printStackTrace(); e.printStackTrace();
throw new PrinterException(PrinterStatusEnum.CODE_FAILED.getStatus(), e.getMessage()); throw new PrinterException(PrinterStatusEnum.CODE_FAILED.getStatus(), e.getMessage());
} }
//桑达打印图片时,本身就会强制走纸一行,这里不再判断是否再走纸 //英泰打印图片时,本身就会强制走纸一行,这里不再判断是否再走纸
return ret; return ret;
} else { } else {
throw new PrinterException(PrinterStatusEnum.CODE_FAILED.getStatus(), PrinterStatusEnum.CODE_FAILED.getDesc()); throw new PrinterException(PrinterStatusEnum.CODE_FAILED.getStatus(), PrinterStatusEnum.CODE_FAILED.getDesc());
......
...@@ -100,7 +100,7 @@ public class AccumulateUtils { ...@@ -100,7 +100,7 @@ public class AccumulateUtils {
*/ */
private static int getBytesLength(String str) { private static int getBytesLength(String str) {
if (str != null) { if (str != null) {
return str.getBytes(Charset.forName("utf-8")).length; return str.getBytes(Charset.forName("GB2312")).length;
} }
return 0; return 0;
} }
......
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