Skip to content

Commit

Permalink
Change copyright info, reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov authored and NikolayPianikov committed Dec 11, 2018
1 parent 893d2d0 commit 9fd9b98
Show file tree
Hide file tree
Showing 68 changed files with 226 additions and 226 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion TeamCity.ServiceMessages.Tests/Read/StringWrapper.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
26 changes: 13 additions & 13 deletions TeamCity.ServiceMessages/Annotations.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -157,7 +157,7 @@ public ValueProviderAttribute([NotNull] string name)
/// <example><code>
/// void Foo(string param) {
/// if (param == null)
/// throw new ArgumentNullException("par"); // Warning: Cannot resolve symbol
/// throw new ArgumentNullException("par"); // Warning: Cannot resolve symbol
/// }
/// </code></example>
[AttributeUsage(AttributeTargets.Parameter)]
Expand Down Expand Up @@ -188,8 +188,8 @@ internal sealed class InvokerParameterNameAttribute : Attribute { }
/// string _name;
///
/// public string Name {
/// get { return _name; }
/// set { _name = value; NotifyChanged("LastName"); /* Warning */ }
/// get { return _name; }
/// set { _name = value; NotifyChanged("LastName"); /* Warning */ }
/// }
/// }
/// </code>
Expand Down Expand Up @@ -310,11 +310,11 @@ public LocalizationRequiredAttribute(bool required)
///
/// class UsesNoEquality {
/// void Test() {
/// var ca1 = new NoEquality();
/// var ca2 = new NoEquality();
/// if (ca1 != null) { // OK
/// bool condition = ca1 == ca2; // Warning
/// }
/// var ca1 = new NoEquality();
/// var ca2 = new NoEquality();
/// if (ca1 != null) { // OK
/// bool condition = ca1 == ca2; // Warning
/// }
/// }
/// }
/// </code></example>
Expand Down Expand Up @@ -500,8 +500,8 @@ public MustUseReturnValueAttribute([NotNull] string justification)
/// [ProvidesContext] IBarService _barService = ...;
///
/// void ProcessNode(INode node) {
/// DoSomething(node, node.GetGlobalServices().Bar);
/// // ^ Warning: use value of '_barService' field
/// DoSomething(node, node.GetGlobalServices().Bar);
/// // ^ Warning: use value of '_barService' field
/// }
/// }
/// </code></example>
Expand Down Expand Up @@ -546,7 +546,7 @@ public PathReferenceAttribute([NotNull, PathReference] string basePath)
/// [SourceTemplate]
/// public static void forEach&lt;T&gt;(this IEnumerable&lt;T&gt; xs) {
/// foreach (var x in xs) {
/// //$ $END$
/// //$ $END$
/// }
/// }
/// </code>
Expand All @@ -569,7 +569,7 @@ internal sealed class SourceTemplateAttribute : Attribute { }
/// [SourceTemplate, Macro(Target = "item", Expression = "suggestVariableName()")]
/// public static void forEach&lt;T&gt;(this IEnumerable&lt;T&gt; collection) {
/// foreach (var item in collection) {
/// //$ $END$
/// //$ $END$
/// }
/// }
/// </code>
Expand Down
14 changes: 7 additions & 7 deletions TeamCity.ServiceMessages/IServiceMessage.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,31 +19,31 @@ namespace JetBrains.TeamCity.ServiceMessages
using System.Collections.Generic;

/// <summary>
/// Object representation of TeamCity service message
/// Object representation of TeamCity service message
/// </summary>
public interface IServiceMessage
{
/// <summary>
/// Service message name, i.e. messageName in ##teamcity[messageName 'ddd'].
/// Service message name, i.e. messageName in ##teamcity[messageName 'ddd'].
/// </summary>
[NotNull]
string Name { get; }

/// <summary>
/// For one-value service messages returns value, i.e. 'aaa' for ##teamcity[message 'aaa']
/// or <code>null</code> otherwise, i.e. ##teamcity[message aa='aaa']
/// For one-value service messages returns value, i.e. 'aaa' for ##teamcity[message 'aaa']
/// or <code>null</code> otherwise, i.e. ##teamcity[message aa='aaa']
/// </summary>
[CanBeNull]
string DefaultValue { get; }

/// <summary>
/// Emptry for one-value service messages, i.e. ##teamcity[message 'aaa'], returns all keys otherwise
/// Emptry for one-value service messages, i.e. ##teamcity[message 'aaa'], returns all keys otherwise
/// </summary>
[NotNull]
IEnumerable<string> Keys { get; }

/// <summary>
/// Return a value for keys or <code>null</code>
/// Return a value for keys or <code>null</code>
/// </summary>
/// <param name="key">Key to check for value</param>
/// <returns>value of available or <code>null</code></returns>
Expand Down
8 changes: 4 additions & 4 deletions TeamCity.ServiceMessages/Read/IServiceMessageParser.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,20 +20,20 @@ namespace JetBrains.TeamCity.ServiceMessages.Read
using System.IO;

/// <summary>
/// Provides service messages parsing from stream
/// Provides service messages parsing from stream
/// </summary>
public interface IServiceMessageParser
{
/// <summary>
/// Lazy parses service messages from string
/// Lazy parses service messages from string
/// </summary>
/// <param name="text">text to parse</param>
/// <returns>enumerable of service messages</returns>
[NotNull]
IEnumerable<IServiceMessage> ParseServiceMessages([NotNull] string text);

/// <summary>
/// Reads stream parsing service messages from it.
/// Reads stream parsing service messages from it.
/// </summary>
/// <param name="reader">stream to parse. Stream will not be closed</param>
/// <returns>Iterator of service messages</returns>
Expand Down
2 changes: 1 addition & 1 deletion TeamCity.ServiceMessages/Read/ServiceMessage.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions TeamCity.ServiceMessages/Read/ServiceMessageParser.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,12 +22,12 @@ namespace JetBrains.TeamCity.ServiceMessages.Read
using System.Text;

/// <summary>
/// Provides service messages parsing from stream
/// Provides service messages parsing from stream
/// </summary>
public class ServiceMessageParser : IServiceMessageParser
{
/// <summary>
/// Lazy parses service messages from string
/// Lazy parses service messages from string
/// </summary>
/// <param name="text">text to parse</param>
/// <returns>enumerable of service messages</returns>
Expand All @@ -38,7 +38,7 @@ public IEnumerable<IServiceMessage> ParseServiceMessages(string text)
}

/// <summary>
/// Reads stream parsing service messages from it.
/// Reads stream parsing service messages from it.
/// </summary>
/// <param name="reader">stream to parse. Stream will not be closed</param>
/// <returns>Iterator of service messages</returns>
Expand Down
2 changes: 1 addition & 1 deletion TeamCity.ServiceMessages/ServiceMessageConstants.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions TeamCity.ServiceMessages/ServiceMessageReplacements.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2007-2017 JetBrains s.r.o.
* Copyright 2007-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,7 @@ namespace JetBrains.TeamCity.ServiceMessages
public class ServiceMessageReplacements
{
/// <summary>
/// Performs TeamCity-format escaping of a string.
/// Performs TeamCity-format escaping of a string.
/// </summary>
[NotNull]
public static string Encode([NotNull] string value)
Expand Down Expand Up @@ -67,7 +67,7 @@ public static string Encode([NotNull] string value)
}

/// <summary>
/// Performs TeamCity-format escaping of a string.
/// Performs TeamCity-format escaping of a string.
/// </summary>
[NotNull]
public static string Decode([NotNull] string value)
Expand Down
Loading

0 comments on commit 9fd9b98

Please sign in to comment.