简体   繁体   English

无法建立实际的Intellij IDEA社区版本

[英]Cannot build actual Intellij IDEA community edition

I am trying to follow these steps . 我正在尝试遵循这些步骤

And I have a problem on "make project" step: 我在“制作项目”步骤上遇到问题:

invalid inferred types for T,A; inferred type does not conform to declared bound(s)
inferred: java.lang.Object
bound(s): T

in ("return addAll(newHashSet(items));") 在(“返回addAll(newHashSet(items));”)中

@NotNull
public static <T> Set<T> set(@NotNull T ... items) {
  return addAll(newHashSet(items));
}

@NotNull
public static <T, A extends T, C extends Collection<T>> C addAll(@NotNull C collection, @NotNull A... elements) {
  //noinspection ManualArrayToCollectionCopy
  for (T element : elements) {
    collection.add(element);
  }
  return collection;
}

It seems strange - the source code is actual and I think, it could be a problem in Project Configuration. 似乎很奇怪-源代码是实际的,我认为这可能是Project Configuration中的问题。 Any ideas? 有任何想法吗?

More info would be helpful. 更多信息会有所帮助。 Like which java you are running? 像您正在运行哪个Java? Your environment setting listed out. 您的环境设置已列出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM