Skip to content

Commit 5f3de1c

Browse files
committed
minor: Correct some typos in Java bindings
1 parent ead41a4 commit 5f3de1c

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

langkit/templates/java_api/jni_impl_c.mako

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ const char * to_c_string(
802802
return (*env)->GetStringUTFChars(env, j_string, NULL);
803803
}
804804

805-
// Release the given C string assocaited with the given Java string
805+
// Release the given C string associated with the given Java string
806806
void release_c_string(
807807
JNIEnv *env,
808808
jstring j_string,

langkit/templates/java_api/main_class.mako

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,6 @@ public final class ${ctx.lib_name.camel} {
322322

323323
/**
324324
* Convert a C Langkit exception to the LangkitException class.
325-
326-
* @param
327325
*/
328326
private static LangkitException wrapException(
329327
final LangkitExceptionNative exc
@@ -807,7 +805,7 @@ public final class ${ctx.lib_name.camel} {
807805
% endfor
808806
;
809807

810-
// ----- Class attributes
808+
// ----- Class attributes -----
811809

812810
/** Singleton that represents the none expcetion kind. */
813811
public static final ExceptionKind NONE =
@@ -1820,7 +1818,7 @@ public final class ${ctx.lib_name.camel} {
18201818

18211819
// ----- Class attributes -----
18221820

1823-
/** Singleton that represents the none diagnositc. */
1821+
/** Singleton that represents the none diagnostic. */
18241822
public static final Diagnostic NONE = new Diagnostic(
18251823
SourceLocationRange.NONE,
18261824
Text.NONE
@@ -1873,8 +1871,8 @@ public final class ${ctx.lib_name.camel} {
18731871
/**
18741872
* Wrap a pointer to a native diagnostic.
18751873
*
1876-
* @param pointer The pointer to the native diagnositc.
1877-
* @return The wrapped diagnositc.
1874+
* @param pointer The pointer to the native diagnostic.
1875+
* @return The wrapped diagnostic.
18781876
*/
18791877
static Diagnostic wrap(
18801878
final Pointer pointer
@@ -1886,7 +1884,7 @@ public final class ${ctx.lib_name.camel} {
18861884
* Wrap a diagnostic native value in the Java class.
18871885
*
18881886
* @param diagnosticNative The diagnostic NI native value.
1889-
* @return The newly wrapped diagnositc.
1887+
* @return The newly wrapped diagnostic.
18901888
*/
18911889
static Diagnostic wrap(
18921890
final DiagnosticNative diagnosticNative
@@ -2049,7 +2047,7 @@ public final class ${ctx.lib_name.camel} {
20492047

20502048
}
20512049

2052-
${c_doc('langkit.unit_provider_type')}
2050+
${java_doc('langkit.unit_provider_type', 4)}
20532051
public static final class UnitProvider implements AutoCloseable {
20542052

20552053
// ----- Class attributes -----
@@ -2141,7 +2139,7 @@ public final class ${ctx.lib_name.camel} {
21412139

21422140
}
21432141

2144-
${java_doc('langkit.event_handler_type')}
2142+
${java_doc('langkit.event_handler_type', 4)}
21452143
public static final class EventHandler implements AutoCloseable {
21462144

21472145
// ----- Class attributes -----
@@ -3551,9 +3549,9 @@ public final class ${ctx.lib_name.camel} {
35513549
}
35523550

35533551
/**
3554-
* Get the list of assiated diagnositcs. Those are parsing errors.
3552+
* Get the list of associated diagnostics. Those are parsing errors.
35553553
*
3556-
* @return The diagnositcs of the unit.
3554+
* @return The diagnostics of the unit.
35573555
*/
35583556
public List<Diagnostic> getDiagnostics() {
35593557
final int diagnosticCount;

0 commit comments

Comments
 (0)