This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test.ws; | |
import javax.xml.bind.JAXBContext; | |
import javax.xml.bind.JAXBException; | |
import javax.xml.bind.Marshaller; | |
import javax.xml.bind.annotation.XmlAccessType; | |
import javax.xml.bind.annotation.XmlAccessorType; | |
import javax.xml.bind.annotation.XmlElement; | |
import javax.xml.bind.annotation.XmlRootElement; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertNull; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test; | |
import java.sql.SQLException; | |
public final class UncheckedThrow { | |
public static void throwUnchecked(final Exception ex){ | |
UncheckedThrow.<RuntimeException>throwsUnchecked(ex); | |
} | |
public static <T extends Exception> void throwsUnchecked(Exception toThrow) throws T{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.springframework.integration.samples.advice.retry; | |
public interface FileStoreRetryGateway { | |
boolean isExist(String id); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.services.util; | |
import java.io.PrintWriter; | |
import java.io.StringWriter; | |
import java.util.ArrayList; | |
import java.util.Enumeration; | |
import java.util.List; | |
import org.apache.log4j.Level; | |
import org.apache.log4j.LogManager; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nexus-data: | |
container_name: nexus-data | |
image: sonatype/nexus:oss | |
command: echo "data-only container for Nexus" | |
nexus: | |
container_name: nexus | |
image: sonatype/nexus:oss | |
environment: | |
- CONTEXT_PATH=/nexus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if $programname == 'marathon' then { | |
action(type="omfile" file="/var/log/mesos/marathon.log") | |
} | |
if $programname == 'chronos' then { | |
action(type="omfile" file="/var/log/mesos/chronos.log") | |
} | |
if $programname == 'mesos-master' then { | |
action(type="omfile" file="/var/log/mesos/mesos-master.log") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.springframework.cloud.ui; | |
import javax.annotation.PostConstruct; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.cloud.consul.ConsulProperties; | |
import org.springframework.cloud.netflix.zuul.EnableZuulProxy; | |
import org.springframework.cloud.netflix.zuul.filters.ZuulProperties; | |
import org.springframework.cloud.netflix.zuul.filters.ZuulProperties.ZuulRoute; | |
import org.springframework.cloud.netflix.zuul.web.ZuulHandlerMapping; | |
import org.springframework.cloud.ui.ConsulUiController; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.golonzovsky.streams; | |
import lombok.AllArgsConstructor; | |
import lombok.Data; | |
import org.junit.Before; | |
import org.junit.Test; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.time.Year; |
OlderNewer