1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

just update to match code style

This commit is contained in:
fangjian0423 2020-02-05 16:42:10 +08:00
parent b72d468be1
commit 49d0ebdabe
7 changed files with 22 additions and 18 deletions

View File

@ -123,7 +123,7 @@ class SampleRunner implements ApplicationRunner {
* *
* user.name=Nacos user.age=25 * user.name=Nacos user.age=25
* @param configInfo latest config data for specific dataId in Nacos * @param configInfo latest config data for specific dataId in Nacos
* server * server
*/ */
@Override @Override
public void receiveConfigInfo(String configInfo) { public void receiveConfigInfo(String configInfo) {

View File

@ -65,8 +65,9 @@ public final class NacosPropertySourceRepository {
public static void collectNacosPropertySource( public static void collectNacosPropertySource(
NacosPropertySource nacosPropertySource) { NacosPropertySource nacosPropertySource) {
NACOS_PROPERTY_SOURCE_REPOSITORY.putIfAbsent(getMapKey(nacosPropertySource.getDataId(), NACOS_PROPERTY_SOURCE_REPOSITORY
nacosPropertySource.getGroup()), nacosPropertySource); .putIfAbsent(getMapKey(nacosPropertySource.getDataId(),
nacosPropertySource.getGroup()), nacosPropertySource);
} }
public static NacosPropertySource getNacosPropertySource(String dataId, public static NacosPropertySource getNacosPropertySource(String dataId,

View File

@ -23,7 +23,7 @@ import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator; import org.springframework.boot.actuate.health.HealthIndicator;
/** /**
* The {@link HealthIndicator} for Nacos Config * The {@link HealthIndicator} for Nacos Config.
* *
* @author xiaojing * @author xiaojing
* @author <a href="mailto:mercyblitz@gmail.com">Mercy</a> * @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>

View File

@ -54,7 +54,8 @@ public class NacosDiscoveryClientConfiguration {
@Bean @Bean
@ConditionalOnMissingBean @ConditionalOnMissingBean
@ConditionalOnProperty(value = "spring.cloud.nacos.discovery.watch.enabled", matchIfMissing = true) @ConditionalOnProperty(value = "spring.cloud.nacos.discovery.watch.enabled",
matchIfMissing = true)
public NacosWatch nacosWatch(NacosDiscoveryProperties nacosDiscoveryProperties, public NacosWatch nacosWatch(NacosDiscoveryProperties nacosDiscoveryProperties,
ObjectProvider<TaskScheduler> taskScheduler) { ObjectProvider<TaskScheduler> taskScheduler) {
return new NacosWatch(nacosDiscoveryProperties, taskScheduler); return new NacosWatch(nacosDiscoveryProperties, taskScheduler);

View File

@ -61,7 +61,7 @@ public class NacosWatch implements ApplicationEventPublisherAware, SmartLifecycl
} }
/** /**
* The constructor with {@link NacosDiscoveryProperties} bean and the optional * The constructor with {@link NacosDiscoveryProperties} bean and the optional.
* {@link TaskScheduler} bean * {@link TaskScheduler} bean
* @param properties {@link NacosDiscoveryProperties} bean * @param properties {@link NacosDiscoveryProperties} bean
* @param taskScheduler the optional {@link TaskScheduler} bean * @param taskScheduler the optional {@link TaskScheduler} bean

View File

@ -1,12 +1,11 @@
/* /*
* Licensed to the Apache Software Foundation (ASF) under one or more * Copyright 2013-2018 the original author or authors.
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
@ -14,6 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package com.alibaba.cloud.nacos.discovery.actuate.health; package com.alibaba.cloud.nacos.discovery.actuate.health;
import com.alibaba.nacos.api.naming.NamingService; import com.alibaba.nacos.api.naming.NamingService;
@ -23,7 +23,7 @@ import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator; import org.springframework.boot.actuate.health.HealthIndicator;
/** /**
* The {@link HealthIndicator} for Nacos Discovery * The {@link HealthIndicator} for Nacos Discovery.
* *
* @author <a href="mailto:mercyblitz@gmail.com">Mercy</a> * @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
* @since 2.2.0 * @since 2.2.0
@ -55,4 +55,5 @@ public class NacosDiscoveryHealthIndicator extends AbstractHealthIndicator {
break; break;
} }
} }
} }

View File

@ -30,7 +30,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
/** /**
* The AutoConfiguration class for Nacos Discovery's Endpoints * The AutoConfiguration class for Nacos Discovery's Endpoints.
* *
* @author xiaojing * @author xiaojing
* @author <a href="mailto:mercyblitz@gmail.com">Mercy</a> * @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
@ -55,4 +55,5 @@ public class NacosDiscoveryEndpointAutoConfiguration {
return new NacosDiscoveryHealthIndicator( return new NacosDiscoveryHealthIndicator(
nacosDiscoveryProperties.namingServiceInstance()); nacosDiscoveryProperties.namingServiceInstance());
} }
} }