Skip to content

Commit 9810617

Browse files
committed
DATAREDIS-759 - Fix line endings to LF.
1 parent aa58ee1 commit 9810617

File tree

4 files changed

+175
-175
lines changed

4 files changed

+175
-175
lines changed
Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
/*
2-
* Copyright 2016-2018 the original author or authors.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
package org.springframework.data.redis.repository.cdi;
17-
18-
import org.springframework.data.annotation.Id;
19-
import org.springframework.data.redis.core.RedisHash;
20-
import org.springframework.data.redis.core.index.Indexed;
21-
22-
/**
23-
* @author Mark Paluch
24-
*/
25-
@RedisHash
26-
class Person {
27-
28-
@Id private String id;
29-
30-
@Indexed private String name;
31-
32-
public String getId() {
33-
return id;
34-
}
35-
36-
public void setId(String id) {
37-
this.id = id;
38-
}
39-
40-
public String getName() {
41-
return name;
42-
}
43-
44-
public void setName(String name) {
45-
this.name = name;
46-
}
47-
48-
@Override
49-
public boolean equals(Object o) {
50-
if (this == o)
51-
return true;
52-
if (!(o instanceof Person))
53-
return false;
54-
55-
Person person = (Person) o;
56-
57-
if (id != null ? !id.equals(person.id) : person.id != null)
58-
return false;
59-
return name != null ? name.equals(person.name) : person.name == null;
60-
}
61-
62-
@Override
63-
public int hashCode() {
64-
int result = id != null ? id.hashCode() : 0;
65-
result = 31 * result + (name != null ? name.hashCode() : 0);
66-
return result;
67-
}
68-
}
1+
/*
2+
* Copyright 2016-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.springframework.data.redis.repository.cdi;
17+
18+
import org.springframework.data.annotation.Id;
19+
import org.springframework.data.redis.core.RedisHash;
20+
import org.springframework.data.redis.core.index.Indexed;
21+
22+
/**
23+
* @author Mark Paluch
24+
*/
25+
@RedisHash
26+
class Person {
27+
28+
@Id private String id;
29+
30+
@Indexed private String name;
31+
32+
public String getId() {
33+
return id;
34+
}
35+
36+
public void setId(String id) {
37+
this.id = id;
38+
}
39+
40+
public String getName() {
41+
return name;
42+
}
43+
44+
public void setName(String name) {
45+
this.name = name;
46+
}
47+
48+
@Override
49+
public boolean equals(Object o) {
50+
if (this == o)
51+
return true;
52+
if (!(o instanceof Person))
53+
return false;
54+
55+
Person person = (Person) o;
56+
57+
if (id != null ? !id.equals(person.id) : person.id != null)
58+
return false;
59+
return name != null ? name.equals(person.name) : person.name == null;
60+
}
61+
62+
@Override
63+
public int hashCode() {
64+
int result = id != null ? id.hashCode() : 0;
65+
result = 31 * result + (name != null ? name.hashCode() : 0);
66+
return result;
67+
}
68+
}
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
/*
2-
* Copyright 2016-2018 the original author or authors.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
package org.springframework.data.redis.repository.cdi;
17-
18-
import java.lang.annotation.ElementType;
19-
import java.lang.annotation.Retention;
20-
import java.lang.annotation.RetentionPolicy;
21-
import java.lang.annotation.Target;
22-
23-
import javax.inject.Qualifier;
24-
25-
/**
26-
* @author Mark Paluch
27-
*/
28-
@Qualifier
29-
@Retention(RetentionPolicy.RUNTIME)
30-
@Target({ ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
31-
@interface PersonDB {
32-
33-
}
1+
/*
2+
* Copyright 2016-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.springframework.data.redis.repository.cdi;
17+
18+
import java.lang.annotation.ElementType;
19+
import java.lang.annotation.Retention;
20+
import java.lang.annotation.RetentionPolicy;
21+
import java.lang.annotation.Target;
22+
23+
import javax.inject.Qualifier;
24+
25+
/**
26+
* @author Mark Paluch
27+
*/
28+
@Qualifier
29+
@Retention(RetentionPolicy.RUNTIME)
30+
@Target({ ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
31+
@interface PersonDB {
32+
33+
}
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
/*
2-
* Copyright 2016-2018 the original author or authors.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
package org.springframework.data.redis.repository.cdi;
17-
18-
import java.util.List;
19-
20-
import org.springframework.data.repository.CrudRepository;
21-
import org.springframework.data.repository.cdi.Eager;
22-
23-
/**
24-
* @author Mark Paluch
25-
*/
26-
@Eager
27-
public interface PersonRepository extends CrudRepository<Person, String>, PersonRepositoryCustom {
28-
29-
List<Person> findAll();
30-
31-
List<Person> findByName(String name);
32-
}
1+
/*
2+
* Copyright 2016-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.springframework.data.redis.repository.cdi;
17+
18+
import java.util.List;
19+
20+
import org.springframework.data.repository.CrudRepository;
21+
import org.springframework.data.repository.cdi.Eager;
22+
23+
/**
24+
* @author Mark Paluch
25+
*/
26+
@Eager
27+
public interface PersonRepository extends CrudRepository<Person, String>, PersonRepositoryCustom {
28+
29+
List<Person> findAll();
30+
31+
List<Person> findByName(String name);
32+
}
Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
/*
2-
* Copyright 2016-2018 the original author or authors.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
package org.springframework.data.redis.repository.cdi;
17-
18-
import javax.inject.Inject;
19-
20-
/**
21-
* @author Mark Paluch
22-
*/
23-
class RepositoryConsumer {
24-
25-
@Inject PersonRepository unqualifiedRepo;
26-
@Inject @PersonDB PersonRepository qualifiedRepo;
27-
28-
public PersonRepository getUnqualifiedRepo() {
29-
return unqualifiedRepo;
30-
}
31-
32-
public PersonRepository getQualifiedRepo() {
33-
return qualifiedRepo;
34-
}
35-
36-
public void deleteAll() {
37-
38-
unqualifiedRepo.deleteAll();
39-
qualifiedRepo.deleteAll();
40-
}
41-
42-
}
1+
/*
2+
* Copyright 2016-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.springframework.data.redis.repository.cdi;
17+
18+
import javax.inject.Inject;
19+
20+
/**
21+
* @author Mark Paluch
22+
*/
23+
class RepositoryConsumer {
24+
25+
@Inject PersonRepository unqualifiedRepo;
26+
@Inject @PersonDB PersonRepository qualifiedRepo;
27+
28+
public PersonRepository getUnqualifiedRepo() {
29+
return unqualifiedRepo;
30+
}
31+
32+
public PersonRepository getQualifiedRepo() {
33+
return qualifiedRepo;
34+
}
35+
36+
public void deleteAll() {
37+
38+
unqualifiedRepo.deleteAll();
39+
qualifiedRepo.deleteAll();
40+
}
41+
42+
}

0 commit comments

Comments
 (0)