Skip to content

Commit

Permalink
修改打印方法名称
Browse files Browse the repository at this point in the history
  • Loading branch information
fengwenyi committed Jul 24, 2018
1 parent 98f9259 commit f0b2b16
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 20 deletions.
25 changes: 16 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.fengwenyi</groupId>
<artifactId>JavaLib</artifactId>
<version>1.0.0-alpha</version>
<version>1.0.0-beta</version>

<parent>
<groupId>org.sonatype.oss</groupId>
Expand All @@ -29,13 +29,17 @@
<developer>
<name>Wenyi Feng</name>
<email>[email protected]</email>
<url>https://fengwenyi.com</url>
<url>http://fengwenyi.com</url>
</developer>
</developers>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<springversion>4.3.3.RELEASE</springversion>
<junit.version>4.12</junit.version>
<servlet_api.version>4.0.1</servlet_api.version>
<gson.version>2.8.5</gson.version>
<http_client.version>4.2</http_client.version>
</properties>


Expand All @@ -53,31 +57,34 @@
</build>

<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.tomcat/servlet-api -->
<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>servlet-api</artifactId>
<version>6.0.53</version>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${servlet_api.version}</version>
<scope>provided</scope>
</dependency>

<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.1</version>
<version>${gson.version}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.2</version>
<version>${http_client.version}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>

</dependencies>
Expand Down
20 changes: 10 additions & 10 deletions src/main/java/com/fengwenyi/javalib/util/Console.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,55 +9,55 @@ public class Console {
/**
* 控制台:换行
*/
public static void log() {
public static void info() {
System.out.println();
}

/**
* 控制台:打印
* @param x Object
*/
public static void log(Object x) {
public static void info(Object x) {
System.out.println(x);
}

/**
* 控制台:打印
* @param x 布尔
*/
public static void log(boolean x) {
public static void info(boolean x) {
System.out.println(x);
}

/**
* 控制台:打印
* @param x 字符
*/
public static void log(char x) {
public static void info(char x) {
System.out.println(x);
}

/**
* 控制台:打印
* @param x 整型
*/
public static void log(int x) {
public static void info(int x) {
System.out.println(x);
}

/**
* 控制台:打印
* @param x 长整型
*/
public static void log(long x) {
public static void info(long x) {
System.out.println(x);
}

/**
* 控制台:打印
* @param x 浮点数
*/
public static void log(float x) {
public static void info(float x) {
System.out.println(x);
}

Expand All @@ -66,23 +66,23 @@ public static void log(float x) {
* 控制台:打印
* @param x 双精度浮点数
*/
public static void log(double x) {
public static void info(double x) {
System.out.println(x);
}

/**
* 控制台:打印
* @param x 字符数组
*/
public static void log(char [] x) {
public static void info(char [] x) {
System.out.println(x);
}

/**
* 控制台:打印
* @param x 字符数组
*/
public static void log(String x) {
public static void info(String x) {
System.out.println(x);
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/fengwenyi/javalib/util/RequestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import java.net.UnknownHostException;

/**
* 你可能想从{HttpServletRequest}获取一些信息
* 你可能想从{@link HttpServletRequest}获取一些信息
* @author Wenyi Feng
*/
public class RequestUtil {
Expand Down

0 comments on commit f0b2b16

Please sign in to comment.