Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-347

"Exporting non-public type through a public API" should provide name of non-public type

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Description

      Given a constructor with many arguments:

      public BinancePendingOrder(CurrencyPair currencyPair, String serverId, String clientId, BigDecimal price, BigDecimal requestedAmount, BigDecimal filledAmount, BinanceOrderStatus status, TimeInForce timeInForce, BinanceOrderType type, OrderSide side, BigDecimal stopPrice, BigDecimal icebergAmount, Instant time)

      Where BinanceOrderType is non-public, Netbeans warns "Exporting non-public type through a public API" on the constructor line but it's not clear which argument it is referring to.

      Expected behavior: The editor hint should indicate the offending argument type and/or name.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cowwoc Gili
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: