You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2023/01/12 10:16:43 UTC

[GitHub] [dubbo] yuluo-yx opened a new issue, #11290: @link 注解使用格式不一致

yuluo-yx opened a new issue, #11290:
URL: https://github.com/apache/dubbo/issues/11290

   ### Environment
   
   * Dubbo version: latest
   * Operating System version: windows10
   * Java version: jdk17
   
   在`org.apache.dubbo.config.AbstractInterfaceConfig`中`@link`注解使用格式不一致
   ```
   /**
        * @deprecated Use {@link ConfigManager#getMetadataConfigs()}
        */
       @Deprecated
       public MetadataReportConfig getMetadataReportConfig() {
           if (metadataReportConfig != null) {
               return metadataReportConfig;
           }
           Collection<MetadataReportConfig> metadataReportConfigs = getConfigManager().getMetadataConfigs();
           if (CollectionUtils.isNotEmpty(metadataReportConfigs)) {
               return metadataReportConfigs.iterator().next();
           }
           return null;
       }
   
       /**
        * @deprecated Use {@link ConfigManager#addMetadataReport(MetadataReportConfig)}
        */
       @Deprecated
       public void setMetadataReportConfig(MetadataReportConfig metadataReportConfig) {
           this.metadataReportConfig = metadataReportConfig;
           if (metadataReportConfig != null) {
               getConfigManager().addMetadataReport(metadataReportConfig);
           }
       }
   ```
   ```
       /**
        * @deprecated Use {@link org.apache.dubbo.config.context.ConfigManager#addConfigCenter(ConfigCenterConfig)}
        */
       @Deprecated
       public void setConfigCenter(ConfigCenterConfig configCenter) {
           this.configCenter = configCenter;
           if (configCenter != null) {
               getConfigManager().addConfigCenter(configCenter);
           }
       }
   ```
   通过对比发现,`@link`引用的类格式不一致!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] yuluo-yx closed issue #11290: @link 注解使用格式不一致

Posted by GitBox <gi...@apache.org>.
yuluo-yx closed issue #11290: @link 注解使用格式不一致
URL: https://github.com/apache/dubbo/issues/11290


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org