我是靠谱客的博主 坚强发箍,这篇文章主要介绍Groovy:java.lang.String.positive() is applicable for argument types: () values: [],现在分享给大家,希望可以做个参考。

今天用groovy开发时遇到如下错误代码:

groovy.lang.MissingMethodException: No signature of method: java.lang.String.positive() is applicable for argument types: () values: []

原来我字符串用+拼接时,换行了,去掉换行就行

错误的:

def a="111111111111111111111"+"222222222222222"+
      +"33333333333333"

正确的:

def a="111111111111111111111"+"222222222222222"+"33333333333333"

最后

以上就是坚强发箍最近收集整理的关于Groovy:java.lang.String.positive() is applicable for argument types: () values: []的全部内容,更多相关Groovy:java.lang.String.positive()内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(242)

评论列表共有 0 条评论

立即
投稿
返回
顶部