Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -446,4 +446,8 @@ public final class WepayField {
*/
public static final String REFUND_RECV_ACCOUNT = "refund_recv_accout";

private WepayField() throws InstantiationException {
throw new InstantiationException("This utility class is not created for instantiation");
}

}
4 changes: 4 additions & 0 deletions wepay-core/src/main/java/me/hao0/wepay/util/Maps.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
*/
public final class Maps {

private Maps() throws InstantiationException {
throw new InstantiationException("This utility class is not created for instantiation");
}

/**
* 转换微信XML为Map(仅支持2级)
* @param xml xml内容
Expand Down
4 changes: 4 additions & 0 deletions wepay-core/src/main/java/me/hao0/wepay/util/RandomStrs.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public final class RandomStrs {

private static final Random random = new Random();

private RandomStrs() throws InstantiationException {
throw new InstantiationException("This utility class is not created for instantiation");
}

/**
* 生成随机字符串
* @param length 长度
Expand Down