主页
IDEs Support (IntelliJ Platform) | JetBrains
联系支持服务
社区
登录
Kanishknishar
活动总数
35
最后的活动
2024年04月12日 21:31
成员加入日期
2022年07月05日 22:23
关注
0 名用户
关注者数
0 名用户
投票数
1
订阅数
8
活动概览
帖子(8)
评论(18)
按最近的活动排序
最近的活动
投票数
创建于
2022年08月17日 14:36
Shit. It seems to work now. Thanks a million. I had a few more questions: 1) How do I make it so that experimental JDK 17 pattern switch matching feature is enabled for all new projects going for...
社区
IntelliJ IDEA Users
Can't use Switch Pattern Matching with Gradle
0 票
创建于
2022年08月17日 13:46
My code can be found here: https://github.com/kanishknishar/Employees
社区
IntelliJ IDEA Users
Can't use Switch Pattern Matching with Gradle
0 票
创建于
2022年08月17日 13:38
What does adding the Gradle plugin mean? I tried following along the page and added the following code to my gradle.build: plugins { id 'java' id 'application'}application { mainClass = 'M...
社区
IntelliJ IDEA Users
Can't use Switch Pattern Matching with Gradle
0 票
已编辑于
2022年08月16日 10:36
I did add the code snippet into my build.gradle file, yes. Which gradle task am I supposed to run? I ran assemble, build and classes but got no output: 16:04:10: Executing 'build'...> Task :compile...
社区
IntelliJ IDEA Users
Can't use Switch Pattern Matching with Gradle
0 票
创建于
2022年08月15日 14:12
By changing the text I meant editing the build.gradle to have: sourceCompatibility = '17.PREVIEW'targetCompatibility = '17.PREVIEW' New errors: > Task :Main.main() FAILEDError: LinkageError occurre...
社区
IntelliJ IDEA Users
Can't use Switch Pattern Matching with Gradle
0 票
创建于
2022年08月15日 10:38
Still get an error after changing the text: D:\OneDrive\Java\Projects\Employees\src\main\java\Main.java:34: error: patterns in switch statements are a preview feature and are disabled by default. ...
社区
IntelliJ IDEA Users
Can't use Switch Pattern Matching with Gradle
0 票
创建于
2022年07月21日 11:45
It seems to work. Thanks a lot!
社区
IntelliJ IDEA Users
Update equals() method code generation to use pattern matching
0 票
创建于
2022年07月20日 05:13
Yes but do you think you could directly tell me what the new code would look like? I think it would be a very small code change.
社区
IntelliJ IDEA Users
Update equals() method code generation to use pattern matching
0 票
创建于
2022年07月19日 07:42
Certainly. This is what the equals() method before pattern matching existed and what the IDE generates by default: @Overridepublic boolean equals(Object o) { if (this == o) return true; if (!...
社区
IntelliJ IDEA Users
Update equals() method code generation to use pattern matching
0 票
创建于
2022年07月08日 23:47
Thanks for the help.
社区
IntelliJ IDEA Users
Different accounts being used when committing to GitHub
0 票
«
第一页
‹
上一页