Remove underscore from Java package name
This commit is contained in:
parent
7a21783df8
commit
cbf6a81c81
3 changed files with 6 additions and 6 deletions
|
|
@ -4,7 +4,7 @@
|
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>in.wilsonl.minify_html</groupId>
|
||||
<groupId>in.wilsonl.minifyhtml</groupId>
|
||||
<artifactId>minify-html</artifactId>
|
||||
<version>0.2.4</version>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package in.wilsonl.minify_html;
|
||||
package in.wilsonl.minifyhtml;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
|
|
@ -14,7 +14,7 @@ fn build_cfg(
|
|||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_in_wilsonl_minify_1html_MinifyHtml_minifyInPlace(
|
||||
pub extern "system" fn Java_in_wilsonl_minifyhtml_MinifyHtml_minifyInPlace(
|
||||
env: JNIEnv,
|
||||
_class: JClass,
|
||||
input: JByteBuffer,
|
||||
|
|
@ -33,7 +33,7 @@ pub extern "system" fn Java_in_wilsonl_minify_1html_MinifyHtml_minifyInPlace(
|
|||
Ok(out_len) => out_len,
|
||||
Err((err, pos)) => {
|
||||
env.throw_new(
|
||||
"in/wilsonl/minify_html/MinifyHtml$SyntaxException",
|
||||
"in/wilsonl/minifyhtml/MinifyHtml$SyntaxException",
|
||||
format!("{} [Character {}]", err.message(), pos),
|
||||
).unwrap();
|
||||
0
|
||||
|
|
@ -42,7 +42,7 @@ pub extern "system" fn Java_in_wilsonl_minify_1html_MinifyHtml_minifyInPlace(
|
|||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_in_wilsonl_minify_1html_MinifyHtml_minify(
|
||||
pub extern "system" fn Java_in_wilsonl_minifyhtml_MinifyHtml_minify(
|
||||
env: JNIEnv,
|
||||
_class: JClass,
|
||||
input: JString,
|
||||
|
|
@ -56,7 +56,7 @@ pub extern "system" fn Java_in_wilsonl_minify_1html_MinifyHtml_minify(
|
|||
Ok(out_len) => env.new_string(unsafe { from_utf8_unchecked(&code[0..out_len]) }).unwrap().into_inner(),
|
||||
Err((err, pos)) => {
|
||||
env.throw_new(
|
||||
"in/wilsonl/minify_html/MinifyHtml$SyntaxException",
|
||||
"in/wilsonl/minifyhtml/MinifyHtml$SyntaxException",
|
||||
format!("{} [Character {}]", err.message(), pos),
|
||||
).unwrap();
|
||||
JObject::null().into_inner()
|
||||
|
|
|
|||
Reference in a new issue