Skip to content

Commit 710c664

Browse files
committed
Update Java snippet template: removed 'public' from class to avoid filename mismatch errors on Godbolt.
Fix Java template to use non-public class for compatibility with Godbolt's virtual filename behavior
1 parent a5bb483 commit 710c664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeSnip/Views/SnippetView/SnippetViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ fn main() {
210210
".Trim(),
211211

212212
["java"] = @"
213-
public class HelloWorld {
213+
class HelloWorld {
214214
public static void main(String[] args) {
215215
System.out.println(""Hello, World!"");
216216
}

0 commit comments

Comments
 (0)